reacthub-pixitweenjs 0.2.107-alpha.98 → 0.2.107-test.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 +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 +1 -0
- 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/PixiTransformer/MenuIcons.d.ts +40 -0
- package/dist/components/PixiTransformer/MenuUtils.d.ts +2 -0
- package/dist/components/PixiTransformer/PixiColorPicker.d.ts +14 -0
- package/dist/components/PixiTransformer/PixiDropdownMenu.d.ts +16 -0
- package/dist/components/PixiTransformer/PixiMenuText.d.ts +2 -0
- package/dist/components/PixiTransformer/PixiTransformer.d.ts +2 -1
- package/dist/components/PixiTransformer/PixiTransformerMenu.d.ts +9 -0
- package/dist/components/PixiVideoSprite/PixiVideoSprite.d.ts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.es.js +21041 -10615
- package/dist/index.umd.js +183 -168
- package/dist/providers/AudioContextProvider.d.ts +12 -0
- package/dist/stories/Features/TimelineTest.stories.d.ts +0 -1
- package/dist/types/Animations.d.ts +2 -1
- package/dist/types/BaseProps.d.ts +2 -4
- package/dist/types/Effects.d.ts +8 -0
- package/dist/utils/isRemoteAsset.d.ts +1 -0
- package/package.json +17 -4
- package/dist/components/PixiGifSprite/PixiGifSprite.d.ts +0 -19
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;
|
|
@@ -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";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
declare const MENUS_ICONS: {
|
|
2
|
+
ARROW_DOWN: string;
|
|
3
|
+
ARROW_UP: string;
|
|
4
|
+
COLOR: string;
|
|
5
|
+
COPY: string;
|
|
6
|
+
DELETE: string;
|
|
7
|
+
TRASH: string;
|
|
8
|
+
EYE: string;
|
|
9
|
+
EYE_SLASH: string;
|
|
10
|
+
LOCK: string;
|
|
11
|
+
UNLOCK: string;
|
|
12
|
+
PASTE: string;
|
|
13
|
+
PENCIL: string;
|
|
14
|
+
PLUS: string;
|
|
15
|
+
MINUS: string;
|
|
16
|
+
ROTATE: string;
|
|
17
|
+
SCALE: string;
|
|
18
|
+
SAVE: string;
|
|
19
|
+
RESET: string;
|
|
20
|
+
SETTINGS: string;
|
|
21
|
+
ZOOM_IN: string;
|
|
22
|
+
ZOOM_OUT: string;
|
|
23
|
+
ALIGN_LEFT: string;
|
|
24
|
+
ALIGN_CENTER: string;
|
|
25
|
+
ALIGN_RIGHT: string;
|
|
26
|
+
DISTRIBUTE_HORIZONTALLY: string;
|
|
27
|
+
DISTRIBUTE_VERTICALLY: string;
|
|
28
|
+
FLIP_HORIZONTAL: string;
|
|
29
|
+
FLIP_VERTICAL: string;
|
|
30
|
+
ROTATE_LEFT: string;
|
|
31
|
+
ROTATE_RIGHT: string;
|
|
32
|
+
SCALE_DOWN: string;
|
|
33
|
+
SCALE_UP: string;
|
|
34
|
+
ADJUST_EQUALISER: string;
|
|
35
|
+
ADJUST_EQUALISER_SLIDERS: string;
|
|
36
|
+
ADJUST_HORIZONTAL_SLIDERS: string;
|
|
37
|
+
COLOR_FILL: string;
|
|
38
|
+
};
|
|
39
|
+
declare const MAX_RECENT_COLORS = 10;
|
|
40
|
+
export { MENUS_ICONS, MAX_RECENT_COLORS };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
interface Position {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
}
|
|
6
|
+
interface ColorPickerPortalProps {
|
|
7
|
+
position: Position;
|
|
8
|
+
color: string;
|
|
9
|
+
onChange: (color: string) => void;
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
recentColors?: string[];
|
|
12
|
+
}
|
|
13
|
+
declare const ColorPickerPortal: ({ position, color, onChange, onClose, }: ColorPickerPortalProps) => React.ReactPortal;
|
|
14
|
+
export default ColorPickerPortal;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as PIXI from "pixi.js";
|
|
3
|
+
interface AlignmentOption {
|
|
4
|
+
icon: string;
|
|
5
|
+
label: string;
|
|
6
|
+
action: () => void;
|
|
7
|
+
}
|
|
8
|
+
interface DropdownPosition {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
}
|
|
12
|
+
declare const useDropDownMenu: (setShowAlignmentDropdown: (show: boolean) => void) => {
|
|
13
|
+
createMenu: (showAlignmentDropdown: boolean, alignmentOptions: AlignmentOption[], dropdownPosition: DropdownPosition) => (() => void) | undefined;
|
|
14
|
+
dropdownRef: import("react").MutableRefObject<PIXI.Container<PIXI.DisplayObject> | null>;
|
|
15
|
+
};
|
|
16
|
+
export default useDropDownMenu;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import { Transformer } from "reacthub-react-bindings";
|
|
2
3
|
type PixiTransformerProps = {
|
|
3
|
-
pixiTransformerRef: React.MutableRefObject<
|
|
4
|
+
pixiTransformerRef: React.MutableRefObject<Transformer>;
|
|
4
5
|
imageRef: React.MutableRefObject<any>;
|
|
5
6
|
isMounted: boolean;
|
|
6
7
|
transformCommit?: (data: any) => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Transformer } from "@pixi-essentials/transformer";
|
|
3
|
+
interface TransformerMenuProps {
|
|
4
|
+
PixiTransformer: React.MutableRefObject<Transformer>;
|
|
5
|
+
uniqueId: string;
|
|
6
|
+
isText: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const TransformerMenu: ({ PixiTransformer }: TransformerMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -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;
|