reacthub-pixitweenjs 0.2.107-alpha.10 → 0.2.107-alpha.101

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.
Files changed (39) hide show
  1. package/README.md +1 -1
  2. package/dist/components/PixiAudioSprite/PixiAudioSprite.d.ts +1 -0
  3. package/dist/components/PixiAudioSprite/PixiAudioSprite.stories.d.ts +1 -0
  4. package/dist/components/PixiGifSprite/PixiGifSprite.stories.d.ts +2 -1
  5. package/dist/components/PixiGifSprite/index.d.ts +2 -2
  6. package/dist/components/PixiImageSprite/PixiImageSprite.stories.d.ts +3 -1
  7. package/dist/components/PixiLottieSprite/PixiLottieSprite.d.ts +14 -0
  8. package/dist/components/PixiLottieSprite/PixiLottieSprite.stories.d.ts +149 -0
  9. package/dist/components/PixiLottieSprite/index.d.ts +1 -0
  10. package/dist/components/PixiRemotionSprite/PixiRemotionSprite.d.ts +26 -0
  11. package/dist/components/PixiRemotionSprite/index.d.ts +1 -0
  12. package/dist/components/PixiSVGSprite/PixiSvgPathSprite.d.ts +4 -1
  13. package/dist/components/PixiSVGSprite/PixiSvgPathSprite.stories.d.ts +1 -1
  14. package/dist/components/PixiTextSprite/PixiTextSprite.d.ts +2 -1
  15. package/dist/components/PixiTextSprite/PixiTextSprite.stories.d.ts +2 -1
  16. package/dist/components/PixiVideoSprite/PixiVideoCanvasSync.d.ts +26 -0
  17. package/dist/components/PixiVideoSprite/PixiVideoSprite.d.ts +1 -0
  18. package/dist/components/PixiVideoSprite/PixiVideoSprite.stories.d.ts +6 -1
  19. package/dist/components/PixiVideoSprite/index.d.ts +1 -0
  20. package/dist/components/index.d.ts +1 -0
  21. package/dist/hooks/index.d.ts +1 -0
  22. package/dist/hooks/useDebounce.d.ts +2 -0
  23. package/dist/hooks/useDeepEffect.d.ts +2 -0
  24. package/dist/hooks/useGsapEffect.d.ts +3 -3
  25. package/dist/hooks/withEffectsHook.d.ts +1 -0
  26. package/dist/hooks/withFiltersHook.d.ts +6 -0
  27. package/dist/index.d.ts +1 -0
  28. package/dist/index.es.js +8194 -11048
  29. package/dist/index.umd.js +140 -128
  30. package/dist/providers/GsapPixieContextProvider.d.ts +2 -0
  31. package/dist/stories/Features/TimelineAnimations.d.ts +15 -0
  32. package/dist/stories/Features/TimelineTest.stories.d.ts +1 -1
  33. package/dist/stories/Features/common.tests.d.ts +331 -0
  34. package/dist/types/Animations.d.ts +32 -0
  35. package/dist/types/BaseProps.d.ts +6 -3
  36. package/dist/types/Effects.d.ts +1 -0
  37. package/dist/utils/GsapAnims.d.ts +2 -0
  38. package/package.json +9 -3
  39. /package/dist/components/PixiGifSprite/{PixiGifSprite.d.ts → PixiGifGsapSync.d.ts} +0 -0
package/README.md CHANGED
@@ -37,4 +37,4 @@ PixiTweenJs is designed to help you build animated time-controlled canvas elemen
37
37
 
38
38
  ## Usage
39
39
 
40
- Visit the [storybook](https://64b9d71094fa7aed0c7291cf-vaocdrptkv.chromatic.com/)
40
+ Visit the [storybook](https://64b9d71094fa7aed0c7291cf-bpnkkrlkgw.chromatic.com)
@@ -9,6 +9,7 @@ type PixiAudioSpriteProps = {
9
9
  mute: boolean;
10
10
  speed: number;
11
11
  visible: boolean;
12
+ waveform?: boolean;
12
13
  };
13
14
  declare const PixiAudioSprite: React.FC<PixiAudioSpriteProps>;
14
15
  export default PixiAudioSprite;
@@ -12,6 +12,7 @@ declare const meta: {
12
12
  mute: boolean;
13
13
  speed: number;
14
14
  visible: boolean;
15
+ waveform?: boolean | undefined;
15
16
  }>;
16
17
  decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
17
18
  tags: string[];
@@ -2,7 +2,7 @@
2
2
  import type { StoryObj } from "@storybook/react";
3
3
  declare const meta: {
4
4
  title: string;
5
- component: import("react").ForwardRefExoticComponent<import("./PixiGifSprite").PixiGifSpriteProps & import("react").RefAttributes<import("../..").ForwardedRefResponse | null>>;
5
+ component: import("react").ForwardRefExoticComponent<import("./PixiGifGsapSync").PixiGifSpriteProps & import("react").RefAttributes<import("../../types").ForwardedRefResponse | null>>;
6
6
  decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
7
7
  tags: string[];
8
8
  argTypes: {
@@ -145,6 +145,7 @@ declare const meta: {
145
145
  export default meta;
146
146
  type Story = StoryObj<typeof meta>;
147
147
  export declare const Normal: Story;
148
+ export declare const Multiple: Story;
148
149
  export declare const FadeIn: Story;
149
150
  export declare const Filters: Story;
150
151
  export declare const SplitPosition: Story;
@@ -1,2 +1,2 @@
1
- export { default as PixiGifSprite } from "./PixiGifSprite";
2
- export * from "./PixiGifSprite";
1
+ export { default as PixiGifSprite } from "./PixiGifGsapSync";
2
+ export * from "./PixiGifGsapSync";
@@ -3,7 +3,7 @@ import type { StoryObj } from "@storybook/react";
3
3
  import { Effects } from "../../types/Effects";
4
4
  declare const meta: {
5
5
  title: string;
6
- component: import("react").ForwardRefExoticComponent<import("../..").PixiBaseSpriteProps & import("react").RefAttributes<import("../..").ForwardedRefResponse | null>>;
6
+ component: import("react").ForwardRefExoticComponent<import("../../types").PixiBaseSpriteProps & import("react").RefAttributes<import("../../types").ForwardedRefResponse | null>>;
7
7
  decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
8
8
  tags: string[];
9
9
  argTypes: {
@@ -132,3 +132,5 @@ export declare const Filters: Story;
132
132
  export declare const FilterEffects: Story;
133
133
  export declare const Overlays: Story;
134
134
  export declare const PointerTests: Story;
135
+ export declare const Animation: Story;
136
+ export declare const PointerAnimation: Story;
@@ -0,0 +1,14 @@
1
+ import * as React from "react";
2
+ import { PixiBaseSpriteProps, ForwardedRefResponse } from "../../types/BaseProps";
3
+ export interface PixiLottieSpriteProps extends PixiBaseSpriteProps {
4
+ uniqueId: string;
5
+ src: string;
6
+ startAt: number;
7
+ endAt: number;
8
+ frameStartAt: number;
9
+ frameEndAt: number;
10
+ locked: boolean;
11
+ loop: boolean;
12
+ }
13
+ declare const PixiLottieSprite: React.ForwardRefExoticComponent<PixiLottieSpriteProps & React.RefAttributes<ForwardedRefResponse | null>>;
14
+ export default PixiLottieSprite;
@@ -0,0 +1,149 @@
1
+ /// <reference types="react" />
2
+ import type { StoryObj } from "@storybook/react";
3
+ declare const meta: {
4
+ title: string;
5
+ component: import("react").ForwardRefExoticComponent<import("./PixiLottieSprite").PixiLottieSpriteProps & import("react").RefAttributes<import("../../types").ForwardedRefResponse | null>>;
6
+ decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
7
+ tags: string[];
8
+ argTypes: {
9
+ uniqueId: {
10
+ control: string;
11
+ description: string;
12
+ };
13
+ src: {
14
+ control: string;
15
+ description: string;
16
+ };
17
+ transformation: {
18
+ control: string;
19
+ description: string;
20
+ x: {
21
+ control: string;
22
+ description: string;
23
+ };
24
+ y: {
25
+ control: string;
26
+ description: string;
27
+ };
28
+ width: {
29
+ control: string;
30
+ description: string;
31
+ };
32
+ height: {
33
+ control: string;
34
+ description: string;
35
+ };
36
+ anchor: {
37
+ control: string;
38
+ description: string;
39
+ };
40
+ rotation: {
41
+ control: string;
42
+ description: string;
43
+ };
44
+ alpha: {
45
+ control: string;
46
+ min: number;
47
+ max: number;
48
+ description: string;
49
+ };
50
+ scale: {
51
+ control: string;
52
+ description: string;
53
+ };
54
+ tint: {
55
+ control: string;
56
+ description: string;
57
+ };
58
+ blendMode: {
59
+ control: string;
60
+ description: string;
61
+ };
62
+ colorCorrection: {
63
+ control: string;
64
+ description: string;
65
+ brightness: {
66
+ control: string;
67
+ description: string;
68
+ };
69
+ contrast: {
70
+ control: string;
71
+ description: string;
72
+ };
73
+ saturation: {
74
+ control: string;
75
+ description: string;
76
+ };
77
+ alpha: {
78
+ control: string;
79
+ description: string;
80
+ };
81
+ };
82
+ };
83
+ applyTransformer: {
84
+ control: string;
85
+ description: string;
86
+ };
87
+ startAt: {
88
+ control: string;
89
+ description: string;
90
+ };
91
+ endAt: {
92
+ control: string;
93
+ description: string;
94
+ };
95
+ frameStartAt: {
96
+ control: string;
97
+ description: string;
98
+ };
99
+ frameEndAt: {
100
+ control: string;
101
+ description: string;
102
+ };
103
+ visible: {
104
+ control: string;
105
+ description: string;
106
+ };
107
+ onAnchorTransformationEnd: {
108
+ action: string;
109
+ description: string;
110
+ };
111
+ pointerdown: {
112
+ action: string;
113
+ description: string;
114
+ };
115
+ pointerup: {
116
+ action: string;
117
+ description: string;
118
+ };
119
+ mousedown: {
120
+ action: string;
121
+ description: string;
122
+ };
123
+ mouseup: {
124
+ action: string;
125
+ description: string;
126
+ };
127
+ pointerover: {
128
+ action: string;
129
+ description: string;
130
+ };
131
+ mouseover: {
132
+ action: string;
133
+ description: string;
134
+ };
135
+ mouseout: {
136
+ action: string;
137
+ description: string;
138
+ };
139
+ pointerout: {
140
+ action: string;
141
+ description: string;
142
+ };
143
+ };
144
+ };
145
+ export default meta;
146
+ type Story = StoryObj<typeof meta>;
147
+ export declare const Normal: Story;
148
+ export declare const Filter: Story;
149
+ export declare const FadeIn: Story;
@@ -0,0 +1 @@
1
+ export { default as PixiLottieSprite } from "./PixiLottieSprite";
@@ -0,0 +1,26 @@
1
+ import * as React from "react";
2
+ import * as PIXI from "pixi.js";
3
+ import { PixiBaseSpriteProps, ForwardedRefResponse } from "../../types/BaseProps";
4
+ export interface CanvasImageProps {
5
+ getCanvas: () => PIXI.TextureSource | PIXI.TextureSource[];
6
+ }
7
+ export interface PixiRemotionSpriteProps extends PixiBaseSpriteProps {
8
+ uniqueId: string;
9
+ src: string;
10
+ frameStartAt: number;
11
+ frameEndAt: number;
12
+ mute: boolean;
13
+ locked: boolean;
14
+ pointerdown?: () => void;
15
+ pointerup?: () => void;
16
+ mousedown?: () => void;
17
+ mouseup?: () => void;
18
+ pointerover?: () => void;
19
+ mouseover?: () => void;
20
+ mouseout?: () => void;
21
+ applyTransformer?: boolean;
22
+ onAnchorTransformationEnd?: (endData: any) => void;
23
+ canvasImageRef?: CanvasImageProps;
24
+ }
25
+ declare const PixiRemotionSprite: React.ForwardRefExoticComponent<PixiRemotionSpriteProps & React.RefAttributes<ForwardedRefResponse | null>>;
26
+ export default PixiRemotionSprite;
@@ -0,0 +1 @@
1
+ export { default as PixiRemotionSprite } from "./PixiRemotionSprite";
@@ -1,6 +1,7 @@
1
1
  import * as React from "react";
2
2
  import { PixiBaseSpriteProps, ForwardedRefResponse } from "../../types/BaseProps";
3
3
  import { Effects } from "../../types/Effects";
4
+ import { Animations } from "../../types";
4
5
  export interface PixiSvgPathSpriteProps extends PixiBaseSpriteProps {
5
6
  uniqueId: string;
6
7
  path: string;
@@ -17,7 +18,7 @@ export interface PixiSvgPathSpriteProps extends PixiBaseSpriteProps {
17
18
  scale?: number | [number, number];
18
19
  tint?: number;
19
20
  blendMode?: number;
20
- animation?: string;
21
+ animation?: Animations;
21
22
  hexColor?: string;
22
23
  fill?: string;
23
24
  fontWeight?: string;
@@ -44,6 +45,8 @@ export interface PixiSvgPathSpriteProps extends PixiBaseSpriteProps {
44
45
  blue?: number;
45
46
  alpha?: number;
46
47
  scaleInput?: number;
48
+ vignette?: number;
49
+ noise?: number;
47
50
  };
48
51
  effect?: Effects;
49
52
  };
@@ -2,7 +2,7 @@
2
2
  import type { StoryObj } from "@storybook/react";
3
3
  declare const meta: {
4
4
  title: string;
5
- component: import("react").ForwardRefExoticComponent<import("./PixiSvgPathSprite").PixiSvgPathSpriteProps & import("react").RefAttributes<import("../..").ForwardedRefResponse | null>>;
5
+ component: import("react").ForwardRefExoticComponent<import("./PixiSvgPathSprite").PixiSvgPathSpriteProps & import("react").RefAttributes<import("../../types").ForwardedRefResponse | null>>;
6
6
  decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
7
7
  tags: string[];
8
8
  argTypes: {
@@ -1,6 +1,7 @@
1
1
  import * as React from "react";
2
2
  import { PixiBaseSpriteProps, ForwardedRefResponse } from "../../types/BaseProps";
3
3
  import { Effects } from "../../types/Effects";
4
+ import { Animations } from "../../types";
4
5
  export interface PixiTextSpriteProps extends PixiBaseSpriteProps {
5
6
  text: string;
6
7
  startAt: number;
@@ -17,7 +18,7 @@ export interface PixiTextSpriteProps extends PixiBaseSpriteProps {
17
18
  scale?: number | [number, number];
18
19
  tint?: number;
19
20
  blendMode?: number;
20
- animation?: string;
21
+ animation?: Animations;
21
22
  fontWeight?: string;
22
23
  fontSize?: number;
23
24
  fontFamily?: string;
@@ -2,7 +2,7 @@
2
2
  import type { StoryObj } from "@storybook/react";
3
3
  declare const meta: {
4
4
  title: string;
5
- component: import("react").ForwardRefExoticComponent<import("./PixiTextSprite").PixiTextSpriteProps & import("react").RefAttributes<import("../..").ForwardedRefResponse | null>>;
5
+ component: import("react").ForwardRefExoticComponent<import("./PixiTextSprite").PixiTextSpriteProps & import("react").RefAttributes<import("../../types").ForwardedRefResponse | null>>;
6
6
  decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
7
7
  tags: string[];
8
8
  argTypes: {
@@ -127,3 +127,4 @@ type Story = StoryObj<typeof meta>;
127
127
  export declare const Normal: Story;
128
128
  export declare const FadeIn: Story;
129
129
  export declare const Filters: Story;
130
+ export declare const Draggable: Story;
@@ -0,0 +1,26 @@
1
+ import * as React from "react";
2
+ import * as PIXI from "pixi.js";
3
+ import { PixiBaseSpriteProps, ForwardedRefResponse } from "../../types/BaseProps";
4
+ export interface CanvasImageProps {
5
+ getCanvas: () => PIXI.TextureSource | PIXI.TextureSource[];
6
+ }
7
+ export interface PixiVideoSpriteProps extends PixiBaseSpriteProps {
8
+ uniqueId: string;
9
+ src: string;
10
+ frameStartAt: number;
11
+ frameEndAt: number;
12
+ mute: boolean;
13
+ locked: boolean;
14
+ pointerdown?: () => void;
15
+ pointerup?: () => void;
16
+ mousedown?: () => void;
17
+ mouseup?: () => void;
18
+ pointerover?: () => void;
19
+ mouseover?: () => void;
20
+ mouseout?: () => void;
21
+ applyTransformer?: boolean;
22
+ onAnchorTransformationEnd?: (endData: any) => void;
23
+ canvasImageRef?: CanvasImageProps;
24
+ }
25
+ declare const PixiVideoCanvasSyncSprite: React.ForwardRefExoticComponent<PixiVideoSpriteProps & React.RefAttributes<ForwardedRefResponse | null>>;
26
+ export default PixiVideoCanvasSyncSprite;
@@ -16,6 +16,7 @@ export interface PixiVideoSpriteProps extends PixiBaseSpriteProps {
16
16
  mouseout?: () => void;
17
17
  applyTransformer?: boolean;
18
18
  onAnchorTransformationEnd?: (endData: any) => void;
19
+ fps?: number;
19
20
  }
20
21
  declare const PixiVideoSprite: React.ForwardRefExoticComponent<PixiVideoSpriteProps & React.RefAttributes<ForwardedRefResponse | null>>;
21
22
  export default PixiVideoSprite;
@@ -2,7 +2,7 @@
2
2
  import type { StoryObj } from "@storybook/react";
3
3
  declare const meta: {
4
4
  title: string;
5
- component: import("react").ForwardRefExoticComponent<import("./PixiVideoSprite").PixiVideoSpriteProps & import("react").RefAttributes<import("../..").ForwardedRefResponse | null>>;
5
+ component: import("react").ForwardRefExoticComponent<import("./PixiVideoSprite").PixiVideoSpriteProps & import("react").RefAttributes<import("../../types").ForwardedRefResponse | null>>;
6
6
  decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
7
7
  tags: string[];
8
8
  argTypes: {
@@ -120,6 +120,10 @@ declare const meta: {
120
120
  action: string;
121
121
  description: string;
122
122
  };
123
+ fps: {
124
+ control: string;
125
+ description: string;
126
+ };
123
127
  };
124
128
  };
125
129
  export default meta;
@@ -129,3 +133,4 @@ export declare const FadeIn: Story;
129
133
  export declare const Filters: Story;
130
134
  export declare const SplitPosition: Story;
131
135
  export declare const SplitStartPos: Story;
136
+ export declare const VideoFps: Story;
@@ -1 +1,2 @@
1
1
  export { default as PixiVideoSprite } from "./PixiVideoSprite";
2
+ export { default as PixiVideoCanvasSyncSprite } from "./PixiVideoCanvasSync";
@@ -6,3 +6,4 @@ export * from "./PixiTextSprite";
6
6
  export * from "./PixiVideoSprite";
7
7
  export * from "./PixiAnimatedSprite";
8
8
  export * from "./PixiSequence";
9
+ export * from "./PixiRemotionSprite";
@@ -0,0 +1 @@
1
+ export * from "./useGsapEffect";
@@ -0,0 +1,2 @@
1
+ declare function useDebounce(value: any, delay?: number): any;
2
+ export default useDebounce;
@@ -0,0 +1,2 @@
1
+ declare const useDeepEffect: (effectFunc: any, deps: any[]) => void;
2
+ export default useDeepEffect;
@@ -1,3 +1,3 @@
1
- import { RefObject } from "react";
2
- import * as PIXI from "pixi.js";
3
- export declare function useGsapEffect(target: RefObject<PIXI.Container>, effect: string, vars: any): undefined;
1
+ export declare function useGsapEffect(): {
2
+ updateEffect: any;
3
+ };
@@ -1,4 +1,5 @@
1
1
  import * as PIXI from "pixi.js";
2
2
  export declare const withEffectsHooks: () => {
3
3
  nightVisionFilter: PIXI.Filter;
4
+ vignetteFilter: PIXI.Filter;
4
5
  };
@@ -13,6 +13,10 @@ export interface FiltersProps {
13
13
  temperature?: number;
14
14
  hue?: number;
15
15
  sharpness?: number;
16
+ vignette?: number;
17
+ noise?: number;
18
+ outline?: number;
19
+ outlineColor?: number;
16
20
  }
17
21
  export declare const withFiltersHook: (props: FiltersProps) => {
18
22
  adjustmentFilter: PixiFilters.AdjustmentFilter;
@@ -20,4 +24,6 @@ export declare const withFiltersHook: (props: FiltersProps) => {
20
24
  hueFilter: PIXI.ColorMatrixFilter;
21
25
  sharpnessFilter: PixiFilters.ConvolutionFilter;
22
26
  temperatureFilter: PIXI.Filter;
27
+ vignetteFilter: PixiFilters.OldFilmFilter;
28
+ noiseFilter: PIXI.NoiseFilter;
23
29
  };
package/dist/index.d.ts CHANGED
@@ -2,3 +2,4 @@ export * from "./components";
2
2
  export * from "./providers";
3
3
  export * from "./types";
4
4
  export * from "./events";
5
+ export * from "./hooks";