MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / createAnimation

Function createAnimation

packages/core/ui/core/view/view-common.ts:1173–1182  ·  view source on GitHub ↗
(animation: any)

Source from the content-addressed store, hash-verified

1171 }
1172
1173 public createAnimation(animation: any): Animation {
1174 if (!this._localAnimations) {
1175 this._localAnimations = new Set();
1176 }
1177 animation.target = this;
1178 const anim = new Animation([animation]);
1179 this._localAnimations.add(anim);
1180
1181 return anim;
1182 }
1183
1184 public _removeAnimation(animation: Animation): boolean {
1185 const localAnimations = this._localAnimations;

Callers

nothing calls this directly

Calls 1

addMethod · 0.65

Tested by

no test coverage detected