reacthub-pixitweenjs 0.2.107-alpha.6 → 0.2.107-alpha.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,6 +15,8 @@ interface GsapPixieContextProps {
15
15
  setTotalDuration?: React.Dispatch<React.SetStateAction<number>>;
16
16
  reverseModeRef: React.MutableRefObject<boolean>;
17
17
  dragModeRef: React.MutableRefObject<boolean>;
18
+ isRemotion: boolean;
19
+ setIsRemotion: React.Dispatch<React.SetStateAction<boolean>>;
18
20
  }
19
21
  declare const GsapPixieContext: React.Context<GsapPixieContextProps>;
20
22
  declare const Events: {
@@ -0,0 +1,15 @@
1
+ import * as React from "react";
2
+ export declare enum SpriteType {
3
+ Image = "Image",
4
+ Gif = "Gif",
5
+ Video = "Video"
6
+ }
7
+ export interface TimelineTestProps {
8
+ startAt: number;
9
+ endAt: number;
10
+ }
11
+ export interface TimelineProps {
12
+ children?: React.ReactNode;
13
+ sequences: TimelineTestProps[];
14
+ }
15
+ export declare const TimelineAnimationTest: (props: TimelineProps) => import("react/jsx-runtime").JSX.Element;
@@ -19,3 +19,4 @@ export declare const GifTest: Story;
19
19
  export declare const VideoTest: Story;
20
20
  export declare const AudioTest: Story;
21
21
  export declare const HowlerAudioTest: Story;
22
+ export declare const Animations: Story;
@@ -1,4 +1,11 @@
1
1
  export declare enum Animations {
2
+ NONE = "NONE",
3
+ FLASH = "FLASH",
4
+ PULSE = "PULSE",
5
+ SHAKE = "SHAKE",
6
+ SWING = "SWING",
7
+ JELLO = "JELLO",
8
+ WOOBLE = "WOOBLE",
2
9
  FADE_IN = "FADE_IN",
3
10
  FADE_OUT = "FADE_OUT",
4
11
  FADE_IN_OUT = "FADE_IN_OUT",
@@ -16,6 +23,22 @@ export declare enum Animations {
16
23
  BOUNCE_IN = "BOUNCE_IN",
17
24
  BOUNCE_OUT = "BOUNCE_OUT",
18
25
  BOUNCE_IN_OUT = "BOUNCE_IN_OUT",
26
+ BOUNCE_IN_DOWN = "BOUNCE_IN_DOWN",
27
+ BOUNCE_IN_LEFT = "BOUNCE_IN_LEFT",
28
+ BOUNCE_IN_RIGHT = "BOUNCE_IN_RIGHT",
29
+ BOUNCE_IN_UP = "BOUNCE_IN_UP",
30
+ BOUNCE_OUT_DOWN = "BOUNCE_OUT_DOWN",
31
+ BOUNCE_OUT_LEFT = "BOUNCE_OUT_LEFT",
32
+ BOUNCE_OUT_RIGHT = "BOUNCE_OUT_RIGHT",
33
+ BOUNCE_OUT_UP = "BOUNCE_OUT_UP",
34
+ FADE_IN_DOWN = "FADE_IN_DOWN",
35
+ FADE_IN_LEFT = "FADE_IN_LEFT",
36
+ FADE_IN_RIGHT = "FADE_IN_RIGHT",
37
+ FADE_IN_UP = "FADE_IN_UP",
38
+ FADE_OUT_DOWN = "FADE_OUT_DOWN",
39
+ FADE_OUT_LEFT = "FADE_OUT_LEFT",
40
+ FADE_OUT_RIGHT = "FADE_OUT_RIGHT",
41
+ FADE_OUT_UP = "FADE_OUT_UP",
19
42
  ELASTIC_IN = "ELASTIC_IN",
20
43
  ELASTIC_OUT = "ELASTIC_OUT",
21
44
  ELASTIC_IN_OUT = "ELASTIC_IN_OUT",
@@ -38,3 +61,12 @@ export declare enum Animations {
38
61
  EXPO = "EXPO",
39
62
  SINE = "SINE"
40
63
  }
64
+ export interface IGsapAnimInterface {
65
+ from?: any;
66
+ to?: any;
67
+ fromTo?: any;
68
+ duration?: number;
69
+ x?: number;
70
+ y?: number;
71
+ alpha?: number;
72
+ }
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { Effects } from "./Effects";
3
3
  import { OverlayTypes } from "../hocs/OverlayTilingSprite";
4
+ import { Animations } from "./Animations";
4
5
  export interface PixiBaseSpriteProps {
5
6
  children?: React.ReactNode;
6
7
  uniqueId: string;
@@ -23,7 +24,7 @@ export interface PixiBaseSpriteProps {
23
24
  scale?: number | [number, number];
24
25
  tint?: number;
25
26
  blendMode?: number;
26
- animation?: string;
27
+ animation?: Animations;
27
28
  colorCorrection?: {
28
29
  enabled?: boolean;
29
30
  temperature?: number;
@@ -45,6 +46,10 @@ export interface PixiBaseSpriteProps {
45
46
  alpha?: number;
46
47
  gamma?: number;
47
48
  scaleInput?: number;
49
+ vignette?: number;
50
+ noise?: number;
51
+ outline?: number;
52
+ outlineColor?: number;
48
53
  };
49
54
  effect?: Effects;
50
55
  overlay?: OverlayTypes;
@@ -59,6 +64,7 @@ export interface PixiBaseSpriteProps {
59
64
  mouseout?: () => void;
60
65
  applyTransformer?: boolean;
61
66
  onAnchorTransformationEnd?: (endData: any) => void;
67
+ fps?: number;
62
68
  }
63
69
  export interface ForwardedRefResponse {
64
70
  getIsTransformerDragging: () => boolean;
@@ -7,5 +7,6 @@ export declare enum Effects {
7
7
  RetroVintage = "RetroVintage",
8
8
  NightVision = "NightVision",
9
9
  Normal = "Normal",
10
+ Vignette = "Vignette",
10
11
  None = "Normal"
11
12
  }
@@ -0,0 +1,2 @@
1
+ import { IGsapAnimInterface, Animations } from "../types/Animations";
2
+ export declare const getAnimByName: (animate: Animations) => IGsapAnimInterface;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reacthub-pixitweenjs",
3
- "version": "0.2.107-alpha.6",
3
+ "version": "0.2.107-alpha.60",
4
4
  "description": "reacthub-pixitweenjs is a library that provides a powerful combination of React, PixiJS, GSAP, and image manipulation capabilities in a timeline sequence. With this library, you can easily create stunning animations and interactive graphics for your React applications",
5
5
  "author": "khanzzirfan <reacthub.ai@gmail.com>",
6
6
  "main": "dist/index.es.js",
@@ -52,6 +52,7 @@
52
52
  "@giphy/react-components": "^5.6.1",
53
53
  "@pixi/assets": "^7.2.3",
54
54
  "@pixi/filter-adjustment": "^5.1.1",
55
+ "@pixi/gif": "^2.1.0",
55
56
  "@pixi/react": "~7.1.0",
56
57
  "@pixi/sound": "^5.2.1",
57
58
  "@react-gifs/tools": "^0.1.2",