reacthub-pixitweenjs 0.2.107-alpha.11 → 0.2.107-alpha.110
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 +21 -0
- package/README.md +35 -14
- package/dist/.gitkeep +0 -0
- package/dist/components/PixiAudioSprite/PixiAudioSprite.d.ts +4 -3
- package/dist/components/PixiAudioSprite/PixiAudioSprite.stories.d.ts +55 -12
- package/dist/components/PixiAudioSprite/useAudioVisualizer.d.ts +18 -0
- package/dist/components/PixiAudioSprite/wave-config.d.ts +4 -0
- package/dist/components/PixiGifSprite/PixiGifSprite.stories.d.ts +2 -1
- package/dist/components/PixiGifSprite/index.d.ts +2 -2
- package/dist/components/PixiImageSprite/PixiImageSprite.stories.d.ts +3 -1
- package/dist/components/PixiLottieSprite/PixiLottieSprite.d.ts +14 -0
- package/dist/components/PixiLottieSprite/PixiLottieSprite.stories.d.ts +149 -0
- package/dist/components/PixiLottieSprite/index.d.ts +1 -0
- package/dist/components/PixiRemotionSprite/PixiRemotionSprite.d.ts +26 -0
- package/dist/components/PixiRemotionSprite/index.d.ts +1 -0
- package/dist/components/PixiSVGSprite/PixiSvgPathSprite.d.ts +4 -1
- package/dist/components/PixiSVGSprite/PixiSvgPathSprite.stories.d.ts +1 -1
- package/dist/components/PixiTextSprite/PixiTextSprite.d.ts +3 -1
- package/dist/components/PixiTextSprite/PixiTextSprite.stories.d.ts +2 -1
- package/dist/components/PixiVideoSprite/PixiVideoCanvasSync.d.ts +26 -0
- package/dist/components/PixiVideoSprite/PixiVideoSprite.d.ts +1 -0
- package/dist/components/PixiVideoSprite/PixiVideoSprite.stories.d.ts +6 -1
- package/dist/components/PixiVideoSprite/index.d.ts +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/hocs/AbstractContainer.d.ts +3 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useDebounce.d.ts +2 -0
- package/dist/hooks/useDeepEffect.d.ts +2 -0
- package/dist/hooks/useGsapEffect.d.ts +3 -3
- package/dist/hooks/withEffectsHook.d.ts +1 -0
- package/dist/hooks/withFiltersHook.d.ts +6 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +19961 -13469
- package/dist/index.umd.js +217 -190
- package/dist/providers/AudioContextProvider.d.ts +12 -0
- package/dist/providers/GsapPixieContextProvider.d.ts +3 -0
- package/dist/stories/Features/TimelineAnimations.d.ts +15 -0
- package/dist/stories/Features/TimelineTest.stories.d.ts +1 -1
- package/dist/stories/Features/common.tests.d.ts +331 -0
- package/dist/types/Animations.d.ts +34 -1
- package/dist/types/BaseProps.d.ts +18 -6
- package/dist/types/Effects.d.ts +9 -0
- package/dist/types/transformation.d.ts +1 -0
- package/dist/utils/GsapAnims.d.ts +2 -0
- package/dist/utils/isRemoteAsset.d.ts +1 -0
- package/package.json +8 -3
- /package/dist/components/PixiGifSprite/{PixiGifSprite.d.ts → PixiGifGsapSync.d.ts} +0 -0
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
|
|
20
|
-
"@pixi
|
|
21
|
-
"@pixi/
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
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
|
|
@@ -37,4 +34,28 @@ PixiTweenJs is designed to help you build animated time-controlled canvas elemen
|
|
|
37
34
|
|
|
38
35
|
## Usage
|
|
39
36
|
|
|
40
|
-
Visit the [storybook](https://
|
|
37
|
+
Visit the [storybook](https://pixitweenjs.xyz/)
|
|
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
|
-
|
|
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.
|
|
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").
|
|
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
|
|
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;
|
|
@@ -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("./
|
|
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 "./
|
|
2
|
-
export * from "./
|
|
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("
|
|
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?:
|
|
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("
|
|
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?:
|
|
21
|
+
animation?: Animations;
|
|
21
22
|
fontWeight?: string;
|
|
22
23
|
fontSize?: number;
|
|
23
24
|
fontFamily?: string;
|
|
@@ -46,6 +47,7 @@ export interface PixiTextSpriteProps extends PixiBaseSpriteProps {
|
|
|
46
47
|
align?: string;
|
|
47
48
|
textBaseline?: string;
|
|
48
49
|
trim?: boolean;
|
|
50
|
+
backgroundColor?: string;
|
|
49
51
|
colorCorrection?: {
|
|
50
52
|
enabled?: boolean;
|
|
51
53
|
temperature?: number;
|
|
@@ -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("
|
|
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("
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { PixiBaseSpriteProps, ForwardedRefResponse } from "../types/BaseProps";
|
|
2
|
+
import { PixiBaseSpriteProps, ForwardedRefResponse, containerScale } from "../types/BaseProps";
|
|
3
3
|
interface AbstractContainerProps extends PixiBaseSpriteProps {
|
|
4
4
|
ignoreTlForVideo?: boolean;
|
|
5
5
|
isText?: boolean;
|
|
@@ -7,6 +7,8 @@ interface AbstractContainerProps extends PixiBaseSpriteProps {
|
|
|
7
7
|
isGif?: boolean;
|
|
8
8
|
onDoubleClick?: () => void;
|
|
9
9
|
isTextEditMode?: boolean;
|
|
10
|
+
handleDragWordWrap?: (width: number, containerScale: containerScale) => void;
|
|
11
|
+
handleDragFontSize?: (width: number, fontSize: number, containerScale: containerScale) => void;
|
|
10
12
|
}
|
|
11
13
|
declare const AbstractContainer: React.ForwardRefExoticComponent<AbstractContainerProps & React.RefAttributes<ForwardedRefResponse | null>>;
|
|
12
14
|
export default AbstractContainer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./useGsapEffect";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare function useGsapEffect(): {
|
|
2
|
+
updateEffect: any;
|
|
3
|
+
};
|
|
@@ -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
|
};
|