Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@endorphinjs/template-runtime

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@endorphinjs/template-runtime - npm Package Compare versions

Comparing version 0.9.5 to 0.9.6-alpha.0

19

dist/animation.d.ts

@@ -0,1 +1,2 @@

import { animatingKey } from './utils';
export declare type EasingFunction = (t: number, b: number, c: number, d: number) => number;

@@ -6,2 +7,12 @@ export declare type AnimationCallback = (elem: HTMLElement, options: TweenOptions) => void;

declare type Callback = (cancel?: boolean) => void;
interface AnimationState {
start: number;
animation: string | TweenFactory;
onComplete: Callback;
timeout?: number;
callback?: () => void;
}
interface HTMLElementAnim extends HTMLElement {
[animatingKey]?: AnimationState;
}
export interface TweenOptions {

@@ -24,11 +35,11 @@ /** Animation duration, ms */

*/
export declare function animate(elem: HTMLElement, animation: string | TweenFactory, callback?: Callback): void;
export declare function animate(elem: HTMLElementAnim, animation: string | TweenFactory, callback?: Callback): void;
/**
* Starts CSS animation on given element
*/
export declare function cssAnimate(elem: HTMLElement, animation: string, callback?: Callback): void;
export declare function cssAnimate(elem: HTMLElementAnim, animation: string, callback?: Callback): void;
/**
* Starts JS animation on given element
*/
export declare function tweenAnimate(elem: HTMLElement, animation: TweenFactory, callback?: () => void): void;
export declare function tweenAnimate(elem: HTMLElementAnim, animation: TweenFactory, callback?: () => void): void;
/**

@@ -43,3 +54,3 @@ * Creates animation CSS value with scoped animation name

export declare function composeTween(tween1?: TweenOptions, tween2?: TweenOptions): TweenOptions;
export declare function stopAnimation(elem: HTMLElement, cancel?: boolean): void;
export declare function stopAnimation(elem: HTMLElementAnim, cancel?: boolean): void;
export {};
{
"name": "@endorphinjs/template-runtime",
"version": "0.9.5",
"version": "0.9.6-alpha.0",
"description": "EndorphinJS template runtime, embedded with template bundles",

@@ -53,3 +53,3 @@ "main": "./dist/runtime.cjs.js",

},
"gitHead": "a969375b3aa55b65e97f7e5bda6e4eb7730d48a8"
"gitHead": "4a5a6b1aefbd9c6fab83a495e884f9f943d7584b"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc