MCPcopy
hub / github.com/spritejs/spritejs / Trasition

Interface Trasition

typings/spritejs.d.ts:857–882  ·  view source on GitHub ↗

* Transitions enable you to define the transition between two states of an element.

Source from the content-addressed store, hash-verified

855 * Transitions enable you to define the transition between two states of an element.
856 */
857 interface Trasition {
858 /**
859 * Cancel the trasition.
860 * @param preserveState
861 */
862 cancel(preserveState: boolean): void;
863 /**
864 * Finish the transition.
865 */
866 end(): void;
867 /**
868 * Reverse the states of the transition.
869 */
870 reverse(): void;
871 /**
872 * Set element attribute.
873 * @param prop
874 * @param val
875 */
876 attr<T extends keyof BaseAttrs | string & {}>(prop: T, val: ArgAttrs[T]): Promise<void>;
877 /**
878 * Set element attributes.
879 * @param attrs
880 */
881 attr(attrs: ArgAttrs): Promise<void>;
882 }
883
884 /**
885 * Returns a RectReadOnly which in essence describes a rectangle describing the smallest

Callers 24

node.jsFile · 0.65
spritejs.min.jsFile · 0.65
spritejs.worker.jsFile · 0.65
spritejs.jsFile · 0.65
LFunction · 0.65
spritejs.min.jsFile · 0.65
buildMethod · 0.65

Implementers 3

Nodesrc/node/node.js
Nodedocs/demo/spritejs.worker.es.js
Edocs/demo/spritejs.worker.es.min.js

Calls

no outgoing calls

Tested by

no test coverage detected