reacthub-pixitweenjs 0.2.12 → 0.2.15
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/dist/components/PixiAnimatedSprite/PixiAnimatedSprite.d.ts +23 -0
- package/dist/components/PixiAnimatedSprite/index.d.ts +1 -0
- package/dist/components/PixiAudioSprite/PixiAudioSprite.d.ts +11 -0
- package/dist/components/PixiAudioSprite/PixiAudioSprite.stories.d.ts +44 -0
- package/dist/components/PixiAudioSprite/index.d.ts +1 -0
- package/dist/components/PixiGifSprite/PixiGifSprite.d.ts +61 -0
- package/dist/components/PixiGifSprite/PixiGifSprite.stories.d.ts +193 -0
- package/dist/components/PixiGifSprite/index.d.ts +2 -0
- package/dist/components/PixiImageSprite/PixiImageSprite.d.ts +4 -0
- package/dist/components/PixiImageSprite/PixiImageSprite.stories.d.ts +125 -0
- package/dist/components/PixiImageSprite/index.d.ts +1 -0
- package/dist/components/PixiSVGSprite/PixiSvgPathSprite.d.ts +61 -0
- package/dist/components/PixiSVGSprite/index.d.ts +1 -0
- package/dist/components/PixiTextSprite/PixiTextSprite.d.ts +84 -0
- package/dist/components/PixiTextSprite/index.d.ts +1 -0
- package/dist/components/PixiVideoSprite/PixiVideoSprite.d.ts +57 -0
- package/dist/components/PixiVideoSprite/PixiVideoSprite.stories.d.ts +183 -0
- package/dist/components/PixiVideoSprite/index.d.ts +1 -0
- package/dist/components/index.d.ts +7 -0
- package/dist/declare.module.d.ts +0 -0
- package/dist/hocs/AbstractContainer.d.ts +4 -0
- package/dist/hocs/WithFilterContainer.d.ts +42 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.es.js +184 -184
- package/dist/index.umd.js +21 -21
- package/dist/providers/GsapPixieContextProvider.d.ts +33 -0
- package/dist/providers/index.d.ts +1 -0
- package/dist/types/Animations.d.ts +40 -0
- package/dist/types/BaseProps.d.ts +56 -0
- package/dist/types/BlendModes.d.ts +19 -0
- package/dist/types/Effects.d.ts +11 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/transformation.d.ts +12 -0
- package/dist/utils/AppStateProvider.d.ts +11 -0
- package/dist/utils/AppStateStage.d.ts +6 -0
- package/dist/utils/AppWrapper.d.ts +7 -0
- package/dist/utils/ContextBridge.d.ts +7 -0
- package/dist/utils/GsapAnim.d.ts +29 -0
- package/dist/utils/InteractionManager.d.ts +18 -0
- package/dist/utils/PixiStage.d.ts +9 -0
- package/dist/utils/PixiTransformer.d.ts +18 -0
- package/dist/utils/VideoSeekBar.d.ts +2 -0
- package/dist/utils/useDebounce.d.ts +1 -0
- package/dist/utils/useDeepEffect.d.ts +4 -0
- package/package.json +7 -5
- package/dist/vite.svg +0 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as PIXI from "pixi.js";
|
|
3
|
+
type PixiAnimatedSpriteProps = {
|
|
4
|
+
forwardRef: any;
|
|
5
|
+
isPlaying: boolean;
|
|
6
|
+
images?: string[] | undefined;
|
|
7
|
+
initialFrame?: number | undefined;
|
|
8
|
+
scale?: number | [number, number];
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
width?: number;
|
|
12
|
+
height?: number;
|
|
13
|
+
anchor?: number;
|
|
14
|
+
rotation?: number;
|
|
15
|
+
alpha?: number;
|
|
16
|
+
animationSpeed?: number;
|
|
17
|
+
textures?: PIXI.Texture[] | undefined;
|
|
18
|
+
loop?: boolean;
|
|
19
|
+
onComplete?: () => void;
|
|
20
|
+
onFrameChange?: (currentFrame: number) => void;
|
|
21
|
+
};
|
|
22
|
+
declare const PixiAnimatedSprite: React.MemoExoticComponent<({ isPlaying, forwardRef, ...props }: PixiAnimatedSpriteProps) => import("react/jsx-runtime").JSX.Element>;
|
|
23
|
+
export default PixiAnimatedSprite;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PixiAnimatedSprite } from "./PixiAnimatedSprite";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
type PixiAudioSpriteProps = {
|
|
3
|
+
uniqueId: string;
|
|
4
|
+
src: string;
|
|
5
|
+
startAt: number;
|
|
6
|
+
endAt: number;
|
|
7
|
+
mute: boolean;
|
|
8
|
+
speed: number;
|
|
9
|
+
};
|
|
10
|
+
declare const PixiAudioSprite: React.FC<PixiAudioSpriteProps>;
|
|
11
|
+
export default PixiAudioSprite;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").FC<{
|
|
6
|
+
uniqueId: string;
|
|
7
|
+
src: string;
|
|
8
|
+
startAt: number;
|
|
9
|
+
endAt: number;
|
|
10
|
+
mute: boolean;
|
|
11
|
+
speed: number;
|
|
12
|
+
}>;
|
|
13
|
+
tags: string[];
|
|
14
|
+
argTypes: {
|
|
15
|
+
uniqueId: {
|
|
16
|
+
control: string;
|
|
17
|
+
description: string;
|
|
18
|
+
};
|
|
19
|
+
src: {
|
|
20
|
+
control: string;
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
startAt: {
|
|
24
|
+
control: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
endAt: {
|
|
28
|
+
control: string;
|
|
29
|
+
description: string;
|
|
30
|
+
};
|
|
31
|
+
mute: {
|
|
32
|
+
control: string;
|
|
33
|
+
description: string;
|
|
34
|
+
};
|
|
35
|
+
speed: {
|
|
36
|
+
control: string;
|
|
37
|
+
description: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export default meta;
|
|
42
|
+
type Story = StoryObj<typeof meta>;
|
|
43
|
+
export declare const Normal: Story;
|
|
44
|
+
export declare const Customized: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PixiAudioSprite } from "./PixiAudioSprite";
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
type PixiGifSpriteProps = {
|
|
3
|
+
uniqueId: string;
|
|
4
|
+
src: string;
|
|
5
|
+
startAt: number;
|
|
6
|
+
endAt: number;
|
|
7
|
+
initialAlpha: number;
|
|
8
|
+
locked: boolean;
|
|
9
|
+
loop: boolean;
|
|
10
|
+
transformation: {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
anchor: number;
|
|
16
|
+
rotation?: number;
|
|
17
|
+
alpha?: number;
|
|
18
|
+
scale?: number | [number, number];
|
|
19
|
+
tint?: number;
|
|
20
|
+
blendMode?: number;
|
|
21
|
+
animation?: string;
|
|
22
|
+
colorCorrection?: {
|
|
23
|
+
enabled?: boolean;
|
|
24
|
+
temperature?: number;
|
|
25
|
+
hue?: number;
|
|
26
|
+
contrast?: number;
|
|
27
|
+
saturation?: number;
|
|
28
|
+
exposure?: number;
|
|
29
|
+
reset?: boolean;
|
|
30
|
+
sharpness?: number;
|
|
31
|
+
value?: number;
|
|
32
|
+
levels?: number;
|
|
33
|
+
luminance?: number;
|
|
34
|
+
enhance?: number;
|
|
35
|
+
blurRadius?: number;
|
|
36
|
+
red?: number;
|
|
37
|
+
green?: number;
|
|
38
|
+
blue?: number;
|
|
39
|
+
alpha?: number;
|
|
40
|
+
scaleInput?: number;
|
|
41
|
+
};
|
|
42
|
+
effect?: string;
|
|
43
|
+
};
|
|
44
|
+
pointerdown?: () => void;
|
|
45
|
+
pointerup?: () => void;
|
|
46
|
+
mousedown?: () => void;
|
|
47
|
+
mouseup?: () => void;
|
|
48
|
+
pointerover?: () => void;
|
|
49
|
+
mouseover?: () => void;
|
|
50
|
+
mouseout?: () => void;
|
|
51
|
+
pointerout?: () => void;
|
|
52
|
+
applyTransformer?: boolean;
|
|
53
|
+
onAnchorTransformationEnd?: (endData: any) => void;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* PixiGifSprite Component is used to render gif image
|
|
57
|
+
* @param props Gif Sprite props
|
|
58
|
+
* @returns
|
|
59
|
+
*/
|
|
60
|
+
declare const PixiGifSprite: React.FC<PixiGifSpriteProps>;
|
|
61
|
+
export default PixiGifSprite;
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").FC<{
|
|
6
|
+
uniqueId: string;
|
|
7
|
+
src: string;
|
|
8
|
+
startAt: number;
|
|
9
|
+
endAt: number;
|
|
10
|
+
initialAlpha: number;
|
|
11
|
+
locked: boolean;
|
|
12
|
+
loop: boolean;
|
|
13
|
+
transformation: {
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
anchor: number;
|
|
19
|
+
rotation?: number | undefined;
|
|
20
|
+
alpha?: number | undefined;
|
|
21
|
+
scale?: number | [number, number] | undefined;
|
|
22
|
+
tint?: number | undefined;
|
|
23
|
+
blendMode?: number | undefined;
|
|
24
|
+
animation?: string | undefined;
|
|
25
|
+
colorCorrection?: {
|
|
26
|
+
enabled?: boolean | undefined;
|
|
27
|
+
temperature?: number | undefined;
|
|
28
|
+
hue?: number | undefined;
|
|
29
|
+
contrast?: number | undefined;
|
|
30
|
+
saturation?: number | undefined;
|
|
31
|
+
exposure?: number | undefined;
|
|
32
|
+
reset?: boolean | undefined;
|
|
33
|
+
sharpness?: number | undefined;
|
|
34
|
+
value?: number | undefined;
|
|
35
|
+
levels?: number | undefined;
|
|
36
|
+
luminance?: number | undefined;
|
|
37
|
+
enhance?: number | undefined;
|
|
38
|
+
blurRadius?: number | undefined;
|
|
39
|
+
red?: number | undefined;
|
|
40
|
+
green?: number | undefined;
|
|
41
|
+
blue?: number | undefined;
|
|
42
|
+
alpha?: number | undefined;
|
|
43
|
+
scaleInput?: number | undefined;
|
|
44
|
+
} | undefined;
|
|
45
|
+
effect?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
pointerdown?: (() => void) | undefined;
|
|
48
|
+
pointerup?: (() => void) | undefined;
|
|
49
|
+
mousedown?: (() => void) | undefined;
|
|
50
|
+
mouseup?: (() => void) | undefined;
|
|
51
|
+
pointerover?: (() => void) | undefined;
|
|
52
|
+
mouseover?: (() => void) | undefined;
|
|
53
|
+
mouseout?: (() => void) | undefined;
|
|
54
|
+
pointerout?: (() => void) | undefined;
|
|
55
|
+
applyTransformer?: boolean | undefined;
|
|
56
|
+
onAnchorTransformationEnd?: ((endData: any) => void) | undefined;
|
|
57
|
+
}>;
|
|
58
|
+
tags: string[];
|
|
59
|
+
argTypes: {
|
|
60
|
+
uniqueId: {
|
|
61
|
+
control: string;
|
|
62
|
+
description: string;
|
|
63
|
+
};
|
|
64
|
+
src: {
|
|
65
|
+
control: string;
|
|
66
|
+
description: string;
|
|
67
|
+
};
|
|
68
|
+
transformation: {
|
|
69
|
+
control: string;
|
|
70
|
+
description: string;
|
|
71
|
+
x: {
|
|
72
|
+
control: string;
|
|
73
|
+
description: string;
|
|
74
|
+
};
|
|
75
|
+
y: {
|
|
76
|
+
control: string;
|
|
77
|
+
description: string;
|
|
78
|
+
};
|
|
79
|
+
width: {
|
|
80
|
+
control: string;
|
|
81
|
+
description: string;
|
|
82
|
+
};
|
|
83
|
+
height: {
|
|
84
|
+
control: string;
|
|
85
|
+
description: string;
|
|
86
|
+
};
|
|
87
|
+
anchor: {
|
|
88
|
+
control: string;
|
|
89
|
+
description: string;
|
|
90
|
+
};
|
|
91
|
+
rotation: {
|
|
92
|
+
control: string;
|
|
93
|
+
description: string;
|
|
94
|
+
};
|
|
95
|
+
alpha: {
|
|
96
|
+
control: string;
|
|
97
|
+
min: number;
|
|
98
|
+
max: number;
|
|
99
|
+
description: string;
|
|
100
|
+
};
|
|
101
|
+
scale: {
|
|
102
|
+
control: string;
|
|
103
|
+
description: string;
|
|
104
|
+
};
|
|
105
|
+
tint: {
|
|
106
|
+
control: string;
|
|
107
|
+
description: string;
|
|
108
|
+
};
|
|
109
|
+
blendMode: {
|
|
110
|
+
control: string;
|
|
111
|
+
description: string;
|
|
112
|
+
};
|
|
113
|
+
colorCorrection: {
|
|
114
|
+
control: string;
|
|
115
|
+
description: string;
|
|
116
|
+
brightness: {
|
|
117
|
+
control: string;
|
|
118
|
+
description: string;
|
|
119
|
+
};
|
|
120
|
+
contrast: {
|
|
121
|
+
control: string;
|
|
122
|
+
description: string;
|
|
123
|
+
};
|
|
124
|
+
saturation: {
|
|
125
|
+
control: string;
|
|
126
|
+
description: string;
|
|
127
|
+
};
|
|
128
|
+
alpha: {
|
|
129
|
+
control: string;
|
|
130
|
+
description: string;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
applyTransformer: {
|
|
135
|
+
control: string;
|
|
136
|
+
description: string;
|
|
137
|
+
};
|
|
138
|
+
startAt: {
|
|
139
|
+
control: string;
|
|
140
|
+
description: string;
|
|
141
|
+
};
|
|
142
|
+
endAt: {
|
|
143
|
+
control: string;
|
|
144
|
+
description: string;
|
|
145
|
+
};
|
|
146
|
+
initialAlpha: {
|
|
147
|
+
control: string;
|
|
148
|
+
min: number;
|
|
149
|
+
max: number;
|
|
150
|
+
description: string;
|
|
151
|
+
};
|
|
152
|
+
onAnchorTransformationEnd: {
|
|
153
|
+
action: string;
|
|
154
|
+
description: string;
|
|
155
|
+
};
|
|
156
|
+
pointerdown: {
|
|
157
|
+
action: string;
|
|
158
|
+
description: string;
|
|
159
|
+
};
|
|
160
|
+
pointerup: {
|
|
161
|
+
action: string;
|
|
162
|
+
description: string;
|
|
163
|
+
};
|
|
164
|
+
mousedown: {
|
|
165
|
+
action: string;
|
|
166
|
+
description: string;
|
|
167
|
+
};
|
|
168
|
+
mouseup: {
|
|
169
|
+
action: string;
|
|
170
|
+
description: string;
|
|
171
|
+
};
|
|
172
|
+
pointerover: {
|
|
173
|
+
action: string;
|
|
174
|
+
description: string;
|
|
175
|
+
};
|
|
176
|
+
mouseover: {
|
|
177
|
+
action: string;
|
|
178
|
+
description: string;
|
|
179
|
+
};
|
|
180
|
+
mouseout: {
|
|
181
|
+
action: string;
|
|
182
|
+
description: string;
|
|
183
|
+
};
|
|
184
|
+
pointerout: {
|
|
185
|
+
action: string;
|
|
186
|
+
description: string;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
export default meta;
|
|
191
|
+
type Story = StoryObj<typeof meta>;
|
|
192
|
+
export declare const Normal: Story;
|
|
193
|
+
export declare const Filters: Story;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
import { Effects } from "../../types/Effects";
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: import("react").FC<import("../..").PixiBaseSpriteProps>;
|
|
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
|
+
effects: {
|
|
63
|
+
type: string;
|
|
64
|
+
options: Effects[];
|
|
65
|
+
description: string;
|
|
66
|
+
};
|
|
67
|
+
colorCorrection: {
|
|
68
|
+
control: string;
|
|
69
|
+
description: string;
|
|
70
|
+
enabled: {
|
|
71
|
+
control: string;
|
|
72
|
+
description: string;
|
|
73
|
+
};
|
|
74
|
+
brightness: {
|
|
75
|
+
control: string;
|
|
76
|
+
description: string;
|
|
77
|
+
};
|
|
78
|
+
contrast: {
|
|
79
|
+
control: string;
|
|
80
|
+
description: string;
|
|
81
|
+
};
|
|
82
|
+
saturation: {
|
|
83
|
+
control: string;
|
|
84
|
+
description: string;
|
|
85
|
+
};
|
|
86
|
+
alpha: {
|
|
87
|
+
control: string;
|
|
88
|
+
description: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
applyTransformer: {
|
|
93
|
+
control: string;
|
|
94
|
+
description: string;
|
|
95
|
+
};
|
|
96
|
+
startAt: {
|
|
97
|
+
control: string;
|
|
98
|
+
description: string;
|
|
99
|
+
};
|
|
100
|
+
endAt: {
|
|
101
|
+
control: string;
|
|
102
|
+
description: string;
|
|
103
|
+
};
|
|
104
|
+
initialAlpha: {
|
|
105
|
+
control: string;
|
|
106
|
+
min: number;
|
|
107
|
+
max: number;
|
|
108
|
+
description: string;
|
|
109
|
+
};
|
|
110
|
+
onAnchorTransformationEnd: {
|
|
111
|
+
action: string;
|
|
112
|
+
description: string;
|
|
113
|
+
};
|
|
114
|
+
pointerdown: {
|
|
115
|
+
action: string;
|
|
116
|
+
description: string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
export default meta;
|
|
121
|
+
type Story = StoryObj<typeof meta>;
|
|
122
|
+
export declare const Normal: Story;
|
|
123
|
+
export declare const FadeIn: Story;
|
|
124
|
+
export declare const Filters: Story;
|
|
125
|
+
export declare const FilterEffects: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PixiImageSprite } from "./PixiImageSprite";
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { PixiBaseSpriteProps } from "../../types/BaseProps";
|
|
3
|
+
import { Effects } from "../../types/Effects";
|
|
4
|
+
interface PixiSvgPathSpriteProps extends PixiBaseSpriteProps {
|
|
5
|
+
uniqueId: string;
|
|
6
|
+
path: string;
|
|
7
|
+
startAt: number;
|
|
8
|
+
endAt: number;
|
|
9
|
+
initialAlpha: number;
|
|
10
|
+
transformation: {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
anchor: number;
|
|
16
|
+
rotation?: number;
|
|
17
|
+
alpha?: number;
|
|
18
|
+
scale?: number | [number, number];
|
|
19
|
+
tint?: number;
|
|
20
|
+
blendMode?: number;
|
|
21
|
+
animation?: string;
|
|
22
|
+
fill?: string;
|
|
23
|
+
fontWeight?: string;
|
|
24
|
+
fontStyle?: string;
|
|
25
|
+
stroke?: string;
|
|
26
|
+
strokeWidth?: number;
|
|
27
|
+
blurRadius?: number;
|
|
28
|
+
colorCorrection?: {
|
|
29
|
+
enabled?: boolean;
|
|
30
|
+
temperature?: number;
|
|
31
|
+
hue?: number;
|
|
32
|
+
contrast?: number;
|
|
33
|
+
saturation?: number;
|
|
34
|
+
exposure?: number;
|
|
35
|
+
reset?: boolean;
|
|
36
|
+
sharpness?: number;
|
|
37
|
+
value?: number;
|
|
38
|
+
levels?: number;
|
|
39
|
+
luminance?: number;
|
|
40
|
+
enhance?: number;
|
|
41
|
+
blurRadius?: number;
|
|
42
|
+
red?: number;
|
|
43
|
+
green?: number;
|
|
44
|
+
blue?: number;
|
|
45
|
+
alpha?: number;
|
|
46
|
+
scaleInput?: number;
|
|
47
|
+
};
|
|
48
|
+
effect?: Effects;
|
|
49
|
+
};
|
|
50
|
+
pointerdown?: () => void;
|
|
51
|
+
pointerup?: () => void;
|
|
52
|
+
mousedown?: () => void;
|
|
53
|
+
mouseup?: () => void;
|
|
54
|
+
pointerover?: () => void;
|
|
55
|
+
mouseover?: () => void;
|
|
56
|
+
mouseout?: () => void;
|
|
57
|
+
applyTransformer?: boolean;
|
|
58
|
+
onAnchorTransformationEnd?: (endData: any) => void;
|
|
59
|
+
}
|
|
60
|
+
declare const PixiSvgPathSprite: React.FC<PixiSvgPathSpriteProps>;
|
|
61
|
+
export default PixiSvgPathSprite;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PixiSvgPathSprite } from "./PixiSvgPathSprite";
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { PixiBaseSpriteProps } from "../../types/BaseProps";
|
|
3
|
+
import { Effects } from "../../types/Effects";
|
|
4
|
+
interface PixiTextSpriteProps extends PixiBaseSpriteProps {
|
|
5
|
+
text: string;
|
|
6
|
+
startAt: number;
|
|
7
|
+
endAt: number;
|
|
8
|
+
initialAlpha: number;
|
|
9
|
+
locked: boolean;
|
|
10
|
+
transformation: {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
anchor: number;
|
|
16
|
+
rotation?: number;
|
|
17
|
+
alpha?: number;
|
|
18
|
+
scale?: number | [number, number];
|
|
19
|
+
tint?: number;
|
|
20
|
+
blendMode?: number;
|
|
21
|
+
animation?: string;
|
|
22
|
+
fontWeight?: string;
|
|
23
|
+
fontSize?: number;
|
|
24
|
+
fontFamily?: string;
|
|
25
|
+
fontStyle?: string;
|
|
26
|
+
fontColor?: string;
|
|
27
|
+
fontVariant?: string;
|
|
28
|
+
lineHeight?: number;
|
|
29
|
+
letterSpacing?: number;
|
|
30
|
+
textDecoration?: string;
|
|
31
|
+
wordWrap?: boolean;
|
|
32
|
+
wordWrapWidth?: number;
|
|
33
|
+
leading?: number;
|
|
34
|
+
padding?: number;
|
|
35
|
+
border?: string;
|
|
36
|
+
dropShadow?: boolean;
|
|
37
|
+
dropShadowColor?: string | number;
|
|
38
|
+
shadowOffsetX?: number;
|
|
39
|
+
shadowOffsetY?: number;
|
|
40
|
+
dropShadowBlur?: number;
|
|
41
|
+
blurEnabled?: boolean;
|
|
42
|
+
blurRadius?: number;
|
|
43
|
+
fill: string | number;
|
|
44
|
+
stroke?: string | number;
|
|
45
|
+
strokeThickness?: number;
|
|
46
|
+
zIndex?: number;
|
|
47
|
+
align?: string;
|
|
48
|
+
textBaseline?: string;
|
|
49
|
+
trim?: boolean;
|
|
50
|
+
colorCorrection?: {
|
|
51
|
+
enabled?: boolean;
|
|
52
|
+
temperature?: number;
|
|
53
|
+
hue?: number;
|
|
54
|
+
contrast?: number;
|
|
55
|
+
saturation?: number;
|
|
56
|
+
exposure?: number;
|
|
57
|
+
reset?: boolean;
|
|
58
|
+
sharpness?: number;
|
|
59
|
+
value?: number;
|
|
60
|
+
levels?: number;
|
|
61
|
+
luminance?: number;
|
|
62
|
+
enhance?: number;
|
|
63
|
+
blurRadius?: number;
|
|
64
|
+
red?: number;
|
|
65
|
+
green?: number;
|
|
66
|
+
blue?: number;
|
|
67
|
+
alpha?: number;
|
|
68
|
+
scaleInput?: number;
|
|
69
|
+
};
|
|
70
|
+
effect?: Effects;
|
|
71
|
+
};
|
|
72
|
+
pointerdown?: () => void;
|
|
73
|
+
pointerup?: () => void;
|
|
74
|
+
mousedown?: () => void;
|
|
75
|
+
mouseup?: () => void;
|
|
76
|
+
pointerover?: () => void;
|
|
77
|
+
mouseover?: () => void;
|
|
78
|
+
mouseout?: () => void;
|
|
79
|
+
applyTransformer?: boolean;
|
|
80
|
+
onTextUpdate?: (data: any) => void;
|
|
81
|
+
onAnchorTransformationEnd?: (endData: any) => void;
|
|
82
|
+
}
|
|
83
|
+
declare const PixiTextSprite: React.FC<PixiTextSpriteProps>;
|
|
84
|
+
export default PixiTextSprite;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PixiTextSprite } from "./PixiTextSprite";
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
type PixiVideoSpriteProps = {
|
|
3
|
+
uniqueId: string;
|
|
4
|
+
src: string;
|
|
5
|
+
startAt: number;
|
|
6
|
+
endAt: number;
|
|
7
|
+
frameStartAt: number;
|
|
8
|
+
frameEndAt: number;
|
|
9
|
+
mute: boolean;
|
|
10
|
+
locked: boolean;
|
|
11
|
+
initialAlpha: number;
|
|
12
|
+
transformation: {
|
|
13
|
+
x: number;
|
|
14
|
+
y: number;
|
|
15
|
+
width: number;
|
|
16
|
+
height: number;
|
|
17
|
+
anchor: number;
|
|
18
|
+
rotation?: number;
|
|
19
|
+
alpha?: number;
|
|
20
|
+
scale?: number | [number, number];
|
|
21
|
+
tint?: number;
|
|
22
|
+
blendMode?: number;
|
|
23
|
+
animation?: string;
|
|
24
|
+
colorCorrection?: {
|
|
25
|
+
enabled?: boolean;
|
|
26
|
+
temperature?: number;
|
|
27
|
+
hue?: number;
|
|
28
|
+
contrast?: number;
|
|
29
|
+
saturation?: number;
|
|
30
|
+
exposure?: number;
|
|
31
|
+
reset?: boolean;
|
|
32
|
+
sharpness?: number;
|
|
33
|
+
value?: number;
|
|
34
|
+
levels?: number;
|
|
35
|
+
luminance?: number;
|
|
36
|
+
enhance?: number;
|
|
37
|
+
blurRadius?: number;
|
|
38
|
+
red?: number;
|
|
39
|
+
green?: number;
|
|
40
|
+
blue?: number;
|
|
41
|
+
alpha?: number;
|
|
42
|
+
scaleInput?: number;
|
|
43
|
+
};
|
|
44
|
+
effect?: string;
|
|
45
|
+
};
|
|
46
|
+
pointerdown?: () => void;
|
|
47
|
+
pointerup?: () => void;
|
|
48
|
+
mousedown?: () => void;
|
|
49
|
+
mouseup?: () => void;
|
|
50
|
+
pointerover?: () => void;
|
|
51
|
+
mouseover?: () => void;
|
|
52
|
+
mouseout?: () => void;
|
|
53
|
+
applyTransformer?: boolean;
|
|
54
|
+
onAnchorTransformationEnd?: (endData: any) => void;
|
|
55
|
+
};
|
|
56
|
+
declare const PixiVideoSprite: React.FC<PixiVideoSpriteProps>;
|
|
57
|
+
export default PixiVideoSprite;
|