reacthub-pixitweenjs 0.2.107-alpha.107 → 0.2.107-alpha.108
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 +34 -13
- package/package.json +4 -4
- package/dist/components/PixiAnimatedSprite/PixiAnimatedSprite.d.ts +0 -23
- package/dist/components/PixiAnimatedSprite/index.d.ts +0 -1
- package/dist/components/PixiAudioSprite/HowlerAudioSprite.d.ts +0 -19
- package/dist/components/PixiAudioSprite/PixiAudioSprite.d.ts +0 -15
- package/dist/components/PixiAudioSprite/PixiAudioSprite.stories.d.ts +0 -105
- package/dist/components/PixiAudioSprite/index.d.ts +0 -1
- package/dist/components/PixiAudioSprite/useAudioVisualizer.d.ts +0 -18
- package/dist/components/PixiAudioSprite/wave-config.d.ts +0 -4
- package/dist/components/PixiGifSprite/PixiGifGsapSync.d.ts +0 -19
- package/dist/components/PixiGifSprite/PixiGifSprite.stories.d.ts +0 -153
- package/dist/components/PixiGifSprite/index.d.ts +0 -2
- package/dist/components/PixiGsapAnims/FadeIn.d.ts +0 -11
- package/dist/components/PixiGsapAnims/PixiFlipContainer.d.ts +0 -9
- package/dist/components/PixiImageSprite/PixiImageSprite.d.ts +0 -4
- package/dist/components/PixiImageSprite/PixiImageSprite.stories.d.ts +0 -136
- package/dist/components/PixiImageSprite/index.d.ts +0 -1
- package/dist/components/PixiLottieSprite/PixiLottieSprite.d.ts +0 -14
- package/dist/components/PixiLottieSprite/PixiLottieSprite.stories.d.ts +0 -149
- package/dist/components/PixiLottieSprite/index.d.ts +0 -1
- package/dist/components/PixiRemotionSprite/PixiRemotionSprite.d.ts +0 -26
- package/dist/components/PixiRemotionSprite/index.d.ts +0 -1
- package/dist/components/PixiSVGSprite/PixiSvgPathSprite.d.ts +0 -64
- package/dist/components/PixiSVGSprite/PixiSvgPathSprite.stories.d.ts +0 -121
- package/dist/components/PixiSVGSprite/index.d.ts +0 -1
- package/dist/components/PixiSequence/PixiSeqenceWrapper.d.ts +0 -9
- package/dist/components/PixiSequence/PixiSequence.d.ts +0 -11
- package/dist/components/PixiSequence/PixiSequence.stories.d.ts +0 -32
- package/dist/components/PixiSequence/index.d.ts +0 -2
- package/dist/components/PixiTextSprite/PixiTextSprite.d.ts +0 -85
- package/dist/components/PixiTextSprite/PixiTextSprite.stories.d.ts +0 -130
- package/dist/components/PixiTextSprite/index.d.ts +0 -1
- package/dist/components/PixiTransformer/PixiTransformer.d.ts +0 -19
- package/dist/components/PixiTransformer/Transformer.d.ts +0 -39
- package/dist/components/PixiTransformer/applyEventProps.d.ts +0 -10
- package/dist/components/PixiTransformer/index.d.ts +0 -1
- package/dist/components/PixiVideoSprite/PixiVideoCanvasSync.d.ts +0 -26
- package/dist/components/PixiVideoSprite/PixiVideoSprite.d.ts +0 -22
- package/dist/components/PixiVideoSprite/PixiVideoSprite.stories.d.ts +0 -136
- package/dist/components/PixiVideoSprite/index.d.ts +0 -2
- package/dist/components/index.d.ts +0 -10
- package/dist/declare.module.d.ts +0 -0
- package/dist/events/Events.d.ts +0 -7
- package/dist/events/index.d.ts +0 -1
- package/dist/hocs/AbstractContainer.d.ts +0 -12
- package/dist/hocs/OverlayTilingSprite.d.ts +0 -30
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/useDebounce.d.ts +0 -2
- package/dist/hooks/useDebouncePointerEvents.d.ts +0 -6
- package/dist/hooks/useDeepEffect.d.ts +0 -2
- package/dist/hooks/useGsapEffect.d.ts +0 -3
- package/dist/hooks/withEffectsHook.d.ts +0 -5
- package/dist/hooks/withFiltersHook.d.ts +0 -29
- package/dist/index.d.ts +0 -5
- package/dist/index.es.js +0 -27256
- package/dist/index.umd.js +0 -2005
- package/dist/providers/AudioContextProvider.d.ts +0 -12
- package/dist/providers/GsapPixieContextProvider.d.ts +0 -47
- package/dist/providers/index.d.ts +0 -1
- package/dist/stories/Features/TestHowlerAudioFiles.d.ts +0 -2
- package/dist/stories/Features/TimelineAnimations.d.ts +0 -15
- package/dist/stories/Features/TimelineTest.d.ts +0 -15
- package/dist/stories/Features/TimelineTest.stories.d.ts +0 -21
- package/dist/stories/Features/TimelineTestAudios.d.ts +0 -15
- package/dist/stories/Features/TimelineTestWithVideos.d.ts +0 -15
- package/dist/stories/Features/TimelineWithGif.d.ts +0 -21
- package/dist/stories/Features/common.tests.d.ts +0 -411
- package/dist/types/Animations.d.ts +0 -72
- package/dist/types/BaseProps.d.ts +0 -70
- package/dist/types/BlendModes.d.ts +0 -19
- package/dist/types/Effects.d.ts +0 -20
- package/dist/types/index.d.ts +0 -4
- package/dist/types/transformation.d.ts +0 -12
- package/dist/utils/AppStateProvider.d.ts +0 -11
- package/dist/utils/AppStateSequenceProvider.d.ts +0 -11
- package/dist/utils/AppStateStage.d.ts +0 -6
- package/dist/utils/AppWrapper.d.ts +0 -7
- package/dist/utils/ContextBridge.d.ts +0 -7
- package/dist/utils/GsapAnim.d.ts +0 -29
- package/dist/utils/GsapAnims.d.ts +0 -2
- package/dist/utils/InteractionManager.d.ts +0 -18
- package/dist/utils/PixiStage.d.ts +0 -9
- package/dist/utils/VideoSeekBar.d.ts +0 -2
- package/dist/utils/isRemoteAsset.d.ts +0 -1
- package/dist/utils/useDebounce.d.ts +0 -1
- package/dist/utils/useDeepEffect.d.ts +0 -4
|
@@ -1,149 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as PixiLottieSprite } from "./PixiLottieSprite";
|
|
@@ -1,26 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as PixiRemotionSprite } from "./PixiRemotionSprite";
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { PixiBaseSpriteProps, ForwardedRefResponse } from "../../types/BaseProps";
|
|
3
|
-
import { Effects } from "../../types/Effects";
|
|
4
|
-
import { Animations } from "../../types";
|
|
5
|
-
export interface PixiSvgPathSpriteProps extends PixiBaseSpriteProps {
|
|
6
|
-
uniqueId: string;
|
|
7
|
-
path: string;
|
|
8
|
-
startAt: number;
|
|
9
|
-
endAt: 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?: Animations;
|
|
22
|
-
hexColor?: string;
|
|
23
|
-
fill?: string;
|
|
24
|
-
fontWeight?: string;
|
|
25
|
-
fontStyle?: string;
|
|
26
|
-
stroke?: string;
|
|
27
|
-
strokeWidth?: number;
|
|
28
|
-
blurRadius?: number;
|
|
29
|
-
colorCorrection?: {
|
|
30
|
-
enabled?: boolean;
|
|
31
|
-
temperature?: number;
|
|
32
|
-
hue?: number;
|
|
33
|
-
contrast?: number;
|
|
34
|
-
saturation?: number;
|
|
35
|
-
exposure?: number;
|
|
36
|
-
reset?: boolean;
|
|
37
|
-
sharpness?: number;
|
|
38
|
-
value?: number;
|
|
39
|
-
levels?: number;
|
|
40
|
-
luminance?: number;
|
|
41
|
-
enhance?: number;
|
|
42
|
-
blurRadius?: number;
|
|
43
|
-
red?: number;
|
|
44
|
-
green?: number;
|
|
45
|
-
blue?: number;
|
|
46
|
-
alpha?: number;
|
|
47
|
-
scaleInput?: number;
|
|
48
|
-
vignette?: number;
|
|
49
|
-
noise?: number;
|
|
50
|
-
};
|
|
51
|
-
effect?: Effects;
|
|
52
|
-
};
|
|
53
|
-
pointerdown?: () => void;
|
|
54
|
-
pointerup?: () => void;
|
|
55
|
-
mousedown?: () => void;
|
|
56
|
-
mouseup?: () => void;
|
|
57
|
-
pointerover?: () => void;
|
|
58
|
-
mouseover?: () => void;
|
|
59
|
-
mouseout?: () => void;
|
|
60
|
-
applyTransformer?: boolean;
|
|
61
|
-
onAnchorTransformationEnd?: (endData: any) => void;
|
|
62
|
-
}
|
|
63
|
-
declare const PixiSvgPathSprite: React.ForwardRefExoticComponent<PixiSvgPathSpriteProps & React.RefAttributes<ForwardedRefResponse | null>>;
|
|
64
|
-
export default PixiSvgPathSprite;
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { StoryObj } from "@storybook/react";
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: import("react").ForwardRefExoticComponent<import("./PixiSvgPathSprite").PixiSvgPathSpriteProps & 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
|
-
path: {
|
|
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
|
-
visible: {
|
|
96
|
-
control: string;
|
|
97
|
-
description: string;
|
|
98
|
-
};
|
|
99
|
-
onAnchorTransformationEnd: {
|
|
100
|
-
action: string;
|
|
101
|
-
description: string;
|
|
102
|
-
};
|
|
103
|
-
pointerdown: {
|
|
104
|
-
action: string;
|
|
105
|
-
description: string;
|
|
106
|
-
};
|
|
107
|
-
pointerout: {
|
|
108
|
-
action: string;
|
|
109
|
-
description: string;
|
|
110
|
-
};
|
|
111
|
-
pointerover: {
|
|
112
|
-
action: string;
|
|
113
|
-
description: string;
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
export default meta;
|
|
118
|
-
type Story = StoryObj<typeof meta>;
|
|
119
|
-
export declare const Normal: Story;
|
|
120
|
-
export declare const FadeIn: Story;
|
|
121
|
-
export declare const Filters: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as PixiSvgPathSprite } from "./PixiSvgPathSprite";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface PixiSequenceWrapperProps {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
/** start time of the total sequence in seconds */
|
|
5
|
-
startAt: number;
|
|
6
|
-
/** end time of the last sequence in seconds. It is end of global timeline seconds */
|
|
7
|
-
endAt: number;
|
|
8
|
-
}
|
|
9
|
-
export declare const PixiSequenceWrapper: (props: PixiSequenceWrapperProps) => React.ReactNode;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface PixiSequenceProps {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
/** start time of the sequence in seconds */
|
|
5
|
-
startAt: number;
|
|
6
|
-
/** end time of the sequence in seconds */
|
|
7
|
-
endAt: number;
|
|
8
|
-
/** unique id */
|
|
9
|
-
uniqueId?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const PixiSequence: (props: PixiSequenceProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/react";
|
|
2
|
-
declare const meta: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: (props: import("./PixiSequence").PixiSequenceProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
|
|
6
|
-
tags: string[];
|
|
7
|
-
argTypes: {
|
|
8
|
-
children: {
|
|
9
|
-
description: string;
|
|
10
|
-
control: {
|
|
11
|
-
type: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
startAt: {
|
|
15
|
-
description: string;
|
|
16
|
-
control: {
|
|
17
|
-
type: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
endAt: {
|
|
21
|
-
description: string;
|
|
22
|
-
control: {
|
|
23
|
-
type: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
export default meta;
|
|
29
|
-
type Story = StoryObj<typeof meta>;
|
|
30
|
-
export declare const Normal: Story;
|
|
31
|
-
export declare const GifSequence: Story;
|
|
32
|
-
export declare const VideoSequence: Story;
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { PixiBaseSpriteProps, ForwardedRefResponse } from "../../types/BaseProps";
|
|
3
|
-
import { Effects } from "../../types/Effects";
|
|
4
|
-
import { Animations } from "../../types";
|
|
5
|
-
export interface PixiTextSpriteProps extends PixiBaseSpriteProps {
|
|
6
|
-
text: string;
|
|
7
|
-
startAt: number;
|
|
8
|
-
endAt: number;
|
|
9
|
-
disabled?: 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?: Animations;
|
|
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
|
-
onDobuleClick?: () => void;
|
|
83
|
-
}
|
|
84
|
-
declare const PixiTextSprite: React.ForwardRefExoticComponent<PixiTextSpriteProps & React.RefAttributes<ForwardedRefResponse | null>>;
|
|
85
|
-
export default PixiTextSprite;
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { StoryObj } from "@storybook/react";
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: import("react").ForwardRefExoticComponent<import("./PixiTextSprite").PixiTextSpriteProps & 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
|
-
text: {
|
|
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
|
-
visible: {
|
|
96
|
-
control: string;
|
|
97
|
-
description: string;
|
|
98
|
-
};
|
|
99
|
-
onAnchorTransformationEnd: {
|
|
100
|
-
action: string;
|
|
101
|
-
description: string;
|
|
102
|
-
};
|
|
103
|
-
pointerup: {
|
|
104
|
-
action: string;
|
|
105
|
-
description: string;
|
|
106
|
-
};
|
|
107
|
-
onTextUpdate: {
|
|
108
|
-
action: string;
|
|
109
|
-
description: string;
|
|
110
|
-
};
|
|
111
|
-
pointerdown: {
|
|
112
|
-
action: string;
|
|
113
|
-
description: string;
|
|
114
|
-
};
|
|
115
|
-
pointerout: {
|
|
116
|
-
action: string;
|
|
117
|
-
description: string;
|
|
118
|
-
};
|
|
119
|
-
pointerover: {
|
|
120
|
-
action: string;
|
|
121
|
-
description: string;
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
export default meta;
|
|
126
|
-
type Story = StoryObj<typeof meta>;
|
|
127
|
-
export declare const Normal: Story;
|
|
128
|
-
export declare const FadeIn: Story;
|
|
129
|
-
export declare const Filters: Story;
|
|
130
|
-
export declare const Draggable: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as PixiTextSprite } from "./PixiTextSprite";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
type PixiTransformerProps = {
|
|
3
|
-
pixiTransformerRef: React.MutableRefObject<any>;
|
|
4
|
-
imageRef: React.MutableRefObject<any>;
|
|
5
|
-
isMounted: boolean;
|
|
6
|
-
transformCommit?: (data: any) => void;
|
|
7
|
-
transformChange?: (data: any) => void;
|
|
8
|
-
mouseoverEvent?: (flag: boolean) => void;
|
|
9
|
-
onDoubleClick?: () => void;
|
|
10
|
-
uniqueId?: string;
|
|
11
|
-
isText?: boolean;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Initialize PixiTransformer to transform the image
|
|
15
|
-
* @param param0
|
|
16
|
-
* @returns
|
|
17
|
-
*/
|
|
18
|
-
declare const PixiTransformer: ({ pixiTransformerRef, imageRef, isMounted, transformCommit, transformChange, mouseoverEvent, onDoubleClick, uniqueId, isText, }: PixiTransformerProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export default PixiTransformer;
|