reacthub-pixitweenjs 0.2.107-alpha.98 → 0.2.107-prealpha.0

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.
package/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Chroma Software Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -16,19 +16,16 @@ Make sure you install the devDependencies in your project.
16
16
 
17
17
  ```js
18
18
  npm install
19
- "@pixi-essentials/react-bindings": "2.0.0",
20
- "@pixi-essentials/transformer": "2.5.6",
21
- "@pixi/assets": "6.5.9",
22
- "@pixi/basis": "6.5.9",
23
- "@pixi/filter-adjustment": "5.1.1",
24
- "@pixi/gif": "1.1.3",
25
- "@pixi/interaction": "6.5.9",
26
- "@pixi/picture": "^3.0.3",
27
- "@pixi/react": "7.0.0",
28
- "@pixi/sound": "^4.3.1",
29
- "pixi-filters": "5.1.1",
30
- "pixi-svg": "3.2.0",
31
- "pixi.js": "6.5.9",
19
+ "@pixi/gif": "^2.1.0",
20
+ "@pixi/react": "~7.1.0",
21
+ "@pixi/sound": "^5.2.1",
22
+ "pixi-filters": "^5.2.1",
23
+ "pixi-svg": "^3.2.0",
24
+ "pixi.js": "^7.2.3",
25
+ "gsap": "3.11.5",
26
+ "howler": "^2.2.3",
27
+ "lottie-web": "^5.10.2",
28
+ "react-custom-events": "^1.1.1",
32
29
  ```
33
30
 
34
31
  ## Description
@@ -38,3 +35,27 @@ PixiTweenJs is designed to help you build animated time-controlled canvas elemen
38
35
  ## Usage
39
36
 
40
37
  Visit the [storybook](https://64b9d71094fa7aed0c7291cf-bpnkkrlkgw.chromatic.com)
38
+
39
+ ## Documentation
40
+
41
+ ## License
42
+
43
+ This library is licensed under the MIT License. See the LICENSE.md file for details.
44
+
45
+ Note: This library comes with restrictions. You are not allowed to copy, modify, or sell this library or any derivative work on behalf of the original author. Usage is permitted only under the terms specified in the license.
46
+
47
+ For example:
48
+
49
+ - Allowed: Use in personal and non-commercial projects.
50
+ - Not Allowed: Copying, modification, or commercial use without explicit permission.
51
+
52
+ ## Contributing
53
+
54
+ Want to contribute to pixitweenjs? Our [contributing guide](Contribution.md) has you covered.
55
+
56
+ ## See also
57
+
58
+ - [editly](https://github.com/mifi/editly) - Declarative video API I also created earlier
59
+ - [remotion](https://github.com/remotion-dev/remotion) - Great inspiration
60
+
61
+ Made with ❤️ in 🇦🇺
package/dist/.gitkeep ADDED
File without changes
@@ -1,5 +1,6 @@
1
1
  import * as React from "react";
2
- type PixiAudioSpriteProps = {
2
+ import { PixiBaseSpriteProps, ForwardedRefResponse } from "../../types/BaseProps";
3
+ export interface PixiAudioSpriteProps extends PixiBaseSpriteProps {
3
4
  uniqueId: string;
4
5
  src: string;
5
6
  startAt: number;
@@ -9,6 +10,6 @@ type PixiAudioSpriteProps = {
9
10
  mute: boolean;
10
11
  speed: number;
11
12
  visible: boolean;
12
- };
13
- declare const PixiAudioSprite: React.FC<PixiAudioSpriteProps>;
13
+ }
14
+ declare const PixiAudioSprite: React.ForwardRefExoticComponent<PixiAudioSpriteProps & React.RefAttributes<ForwardedRefResponse | null>>;
14
15
  export default PixiAudioSprite;
@@ -1,18 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import type { StoryObj } from "@storybook/react";
3
+ import { Waveforms } from "../../types/Effects";
3
4
  declare const meta: {
4
5
  title: string;
5
- component: import("react").FC<{
6
- uniqueId: string;
7
- src: string;
8
- startAt: number;
9
- endAt: number;
10
- audioStartAt: number;
11
- audioEndAt: number;
12
- mute: boolean;
13
- speed: number;
14
- visible: boolean;
15
- }>;
6
+ component: import("react").ForwardRefExoticComponent<import("./PixiAudioSprite").PixiAudioSpriteProps & import("react").RefAttributes<import("../..").ForwardedRefResponse | null>>;
16
7
  decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
17
8
  tags: string[];
18
9
  argTypes: {
@@ -52,11 +43,63 @@ declare const meta: {
52
43
  control: string;
53
44
  description: string;
54
45
  };
46
+ transformation: {
47
+ control: string;
48
+ description: string;
49
+ x: {
50
+ control: string;
51
+ description: string;
52
+ };
53
+ y: {
54
+ control: string;
55
+ description: string;
56
+ };
57
+ width: {
58
+ control: string;
59
+ description: string;
60
+ };
61
+ height: {
62
+ control: string;
63
+ description: string;
64
+ };
65
+ anchor: {
66
+ control: string;
67
+ description: string;
68
+ };
69
+ rotation: {
70
+ control: string;
71
+ description: string;
72
+ };
73
+ alpha: {
74
+ control: string;
75
+ min: number;
76
+ max: number;
77
+ description: string;
78
+ };
79
+ scale: {
80
+ control: string;
81
+ description: string;
82
+ };
83
+ tint: {
84
+ control: string;
85
+ description: string;
86
+ };
87
+ blendMode: {
88
+ control: string;
89
+ description: string;
90
+ };
91
+ waveform: {
92
+ type: string;
93
+ options: Waveforms[];
94
+ description: string;
95
+ };
96
+ };
55
97
  };
56
98
  };
57
99
  export default meta;
58
100
  type Story = StoryObj<typeof meta>;
59
101
  export declare const Normal: Story;
102
+ export declare const Visualization: Story;
60
103
  export declare const Speech: Story;
61
- export declare const Customized: Story;
104
+ export declare const Muted: Story;
62
105
  export declare const SplitPosition: Story;
@@ -0,0 +1,18 @@
1
+ import * as React from "react";
2
+ import AudioMotionAnalyzer from "audiomotion-analyzer";
3
+ import { PixiBaseSpriteProps } from "../../types/BaseProps";
4
+ export type AudioVisualizerProps = Partial<PixiBaseSpriteProps> & {
5
+ uniqueId: string;
6
+ src: string;
7
+ muted?: boolean;
8
+ volume?: number;
9
+ loop?: boolean;
10
+ playbackRate?: number;
11
+ visible?: boolean;
12
+ };
13
+ declare const useAudioVisualizer: (audioProps: AudioVisualizerProps) => {
14
+ audioMotionRef: React.MutableRefObject<AudioMotionAnalyzer | undefined>;
15
+ blobUrl: string;
16
+ canvasRef: React.MutableRefObject<HTMLDivElement | undefined>;
17
+ };
18
+ export default useAudioVisualizer;
@@ -0,0 +1,4 @@
1
+ import { Waveforms } from "../../types/Effects";
2
+ import { Options, ConstructorOptions } from "audiomotion-analyzer";
3
+ export type WaveConfigOptions = Partial<ConstructorOptions & Options>;
4
+ export declare const waveConfig: Record<Waveforms, WaveConfigOptions>;
@@ -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;
@@ -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";
@@ -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;
@@ -7,3 +7,4 @@ export * from "./PixiVideoSprite";
7
7
  export * from "./PixiAnimatedSprite";
8
8
  export * from "./PixiSequence";
9
9
  export * from "./PixiRemotionSprite";
10
+ export * from "./PixiLottieSprite";