reacthub-pixitweenjs 0.2.109-alpha.5 → 0.2.109-alpha.7

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.
Files changed (38) hide show
  1. package/README.md +6 -0
  2. package/dist/assets/icon/transformericons/icons.d.ts +8 -0
  3. package/dist/components/PixiAudioSprite/PixiAudioSprite.d.ts +3 -0
  4. package/dist/components/PixiAudioSprite/PixiAudioSprite.stories.d.ts +4 -97
  5. package/dist/components/PixiGifSprite/PixiGifGsapSync.d.ts +3 -0
  6. package/dist/components/PixiGifSprite/PixiGifSprite.stories.d.ts +21 -11
  7. package/dist/components/PixiImageSprite/PixiImageSprite.d.ts +5 -1
  8. package/dist/components/PixiImageSprite/PixiImageSprite.stories.d.ts +23 -9
  9. package/dist/components/PixiLottieSprite/PixiLottieSprite.d.ts +3 -0
  10. package/dist/components/PixiLottieSprite/PixiLottieSprite.stories.d.ts +21 -11
  11. package/dist/components/PixiSVGSprite/PixiSvgPathSprite.d.ts +3 -0
  12. package/dist/components/PixiSVGSprite/PixiSvgPathSprite.stories.d.ts +19 -9
  13. package/dist/components/PixiSequence/PixiSequence.stories.d.ts +4 -4
  14. package/dist/components/PixiTextSprite/PixiTextSprite.d.ts +3 -0
  15. package/dist/components/PixiTextSprite/PixiTextSprite.stories.d.ts +19 -9
  16. package/dist/components/PixiUnifiedTransformer/PixiUnifiedTransformer.d.ts +26 -0
  17. package/dist/components/PixiUnifiedTransformer/index.d.ts +1 -0
  18. package/dist/components/PixiVideoSprite/PixiVideoSprite.d.ts +3 -0
  19. package/dist/components/PixiVideoSprite/PixiVideoSprite.stories.d.ts +24 -14
  20. package/dist/components/index.d.ts +1 -0
  21. package/dist/favicon.svg +41 -0
  22. package/dist/hocs/AbstractContainer.d.ts +16 -0
  23. package/dist/index.es.js +3198 -4488
  24. package/dist/index.umd.js +37 -37
  25. package/dist/pixitweenjs-logo-dark.svg +98 -0
  26. package/dist/pixitweenjs-logo.svg +97 -0
  27. package/dist/stories/Features/TimelineTest.stories.d.ts +3 -2
  28. package/package.json +8 -1
  29. package/dist/components/PixiTransformer/MenuIcons.d.ts +0 -40
  30. package/dist/components/PixiTransformer/MenuUtils.d.ts +0 -2
  31. package/dist/components/PixiTransformer/PixiColorPicker.d.ts +0 -14
  32. package/dist/components/PixiTransformer/PixiDropdownMenu.d.ts +0 -15
  33. package/dist/components/PixiTransformer/PixiMenuText.d.ts +0 -2
  34. package/dist/components/PixiTransformer/PixiTransformer.d.ts +0 -20
  35. package/dist/components/PixiTransformer/PixiTransformerMenu.d.ts +0 -9
  36. package/dist/components/PixiTransformer/Transformer.d.ts +0 -39
  37. package/dist/components/PixiTransformer/applyEventProps.d.ts +0 -10
  38. package/dist/components/PixiTransformer/index.d.ts +0 -1
package/README.md CHANGED
@@ -1,5 +1,11 @@
1
1
  <div align="center">
2
2
 
3
+ <picture>
4
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/khanzzirfan/reacthub-pixitweenjs/main/src/assets/svg/pixitweenjs-logo-dark.svg">
5
+ <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/khanzzirfan/reacthub-pixitweenjs/main/src/assets/svg/pixitweenjs-logo.svg">
6
+ <img src="https://raw.githubusercontent.com/khanzzirfan/reacthub-pixitweenjs/main/src/assets/svg/pixitweenjs-logo.svg" alt="PixiTweenJS Logo" width="500">
7
+ </picture>
8
+
3
9
  # ✨ Reacthub PixiTweenJS ✨
4
10
 
5
11
  **A powerful library for creating stunning animated, time-controlled canvas elements in React using PixiJS, GSAP, and more**
@@ -0,0 +1,8 @@
1
+ export declare const opacityIcon: () => string;
2
+ export declare const roundCornersIcon: () => string;
3
+ export declare const deleteIcon: () => string;
4
+ export declare const copyIcon: () => string;
5
+ export declare const orderIcon: () => string;
6
+ export declare const saveIcon: () => string;
7
+ export declare const replaceImageIcon: () => string;
8
+ export declare const chevronRightIcon: () => string;
@@ -1,5 +1,6 @@
1
1
  import { PixiBaseSpriteProps, ForwardedRefResponse } from '../../types/BaseProps';
2
2
  import * as React from "react";
3
+ import * as PIXI from "pixi.js";
3
4
  export interface PixiAudioSpriteProps extends PixiBaseSpriteProps {
4
5
  uniqueId: string;
5
6
  src: string;
@@ -10,6 +11,8 @@ export interface PixiAudioSpriteProps extends PixiBaseSpriteProps {
10
11
  mute: boolean;
11
12
  speed: number;
12
13
  visible: boolean;
14
+ onContainerRefReady?: (uniqueId: string, ref: React.MutableRefObject<PIXI.Container | null>) => void;
15
+ onSpriteRefReady?: (uniqueId: string, ref: React.MutableRefObject<PIXI.Container | null>) => void;
13
16
  }
14
17
  declare const PixiAudioSprite: React.ForwardRefExoticComponent<PixiAudioSpriteProps & React.RefAttributes<ForwardedRefResponse | null>>;
15
18
  export default PixiAudioSprite;
@@ -1,101 +1,7 @@
1
- import { StoryObj } from '@storybook/react';
2
- import { Waveforms } from '../../types/Effects';
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { PixiAudioSprite } from '.';
3
3
 
4
- declare const meta: {
5
- title: string;
6
- component: import('react').ForwardRefExoticComponent<import('./PixiAudioSprite').PixiAudioSpriteProps & import('react').RefAttributes<import('../..').ForwardedRefResponse | null>>;
7
- decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
8
- tags: string[];
9
- argTypes: {
10
- uniqueId: {
11
- control: string;
12
- description: string;
13
- };
14
- src: {
15
- control: string;
16
- description: string;
17
- };
18
- startAt: {
19
- control: string;
20
- description: string;
21
- };
22
- endAt: {
23
- control: string;
24
- description: string;
25
- };
26
- audioStartAt: {
27
- control: string;
28
- description: string;
29
- };
30
- audioEndAt: {
31
- control: string;
32
- description: string;
33
- };
34
- mute: {
35
- control: string;
36
- description: string;
37
- };
38
- speed: {
39
- control: string;
40
- description: string;
41
- };
42
- visible: {
43
- control: string;
44
- description: string;
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
- };
97
- };
98
- };
4
+ declare const meta: Meta<typeof PixiAudioSprite>;
99
5
  export default meta;
100
6
  type Story = StoryObj<typeof meta>;
101
7
  export declare const Normal: Story;
@@ -103,3 +9,4 @@ export declare const Visualization: Story;
103
9
  export declare const Speech: Story;
104
10
  export declare const Muted: Story;
105
11
  export declare const SplitPosition: Story;
12
+ export declare const WithUnifiedTransformer: Story;
@@ -1,5 +1,6 @@
1
1
  import { PixiBaseSpriteProps, ForwardedRefResponse } from '../../types/BaseProps';
2
2
  import * as React from "react";
3
+ import * as PIXI from "pixi.js";
3
4
  export interface PixiGifSpriteProps extends PixiBaseSpriteProps {
4
5
  uniqueId: string;
5
6
  src: string;
@@ -9,6 +10,8 @@ export interface PixiGifSpriteProps extends PixiBaseSpriteProps {
9
10
  frameEndAt: number;
10
11
  locked: boolean;
11
12
  loop: boolean;
13
+ onContainerRefReady?: (uniqueId: string, ref: React.MutableRefObject<PIXI.Container | null>) => void;
14
+ onSpriteRefReady?: (uniqueId: string, ref: React.MutableRefObject<PIXI.Container | null>) => void;
12
15
  }
13
16
  /**
14
17
  * PixiGifSprite Component is used to render gif image
@@ -1,21 +1,22 @@
1
- import { StoryObj } from '@storybook/react';
1
+ import { StoryObj } from '@storybook/react-vite';
2
2
 
3
+ import * as React from "react";
3
4
  declare const meta: {
4
5
  title: string;
5
- component: import('react').ForwardRefExoticComponent<import('./PixiGifGsapSync').PixiGifSpriteProps & import('react').RefAttributes<import('../../types').ForwardedRefResponse | null>>;
6
+ component: React.ForwardRefExoticComponent<import('./PixiGifGsapSync').PixiGifSpriteProps & React.RefAttributes<import('../..').ForwardedRefResponse | null>>;
6
7
  decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
7
8
  tags: string[];
8
9
  argTypes: {
9
10
  uniqueId: {
10
- control: string;
11
+ control: "text";
11
12
  description: string;
12
13
  };
13
14
  src: {
14
- control: string;
15
+ control: "text";
15
16
  description: string;
16
17
  };
17
18
  transformation: {
18
- control: string;
19
+ control: "object";
19
20
  description: string;
20
21
  x: {
21
22
  control: string;
@@ -81,27 +82,27 @@ declare const meta: {
81
82
  };
82
83
  };
83
84
  applyTransformer: {
84
- control: string;
85
+ control: "boolean";
85
86
  description: string;
86
87
  };
87
88
  startAt: {
88
- control: string;
89
+ control: "number";
89
90
  description: string;
90
91
  };
91
92
  endAt: {
92
- control: string;
93
+ control: "number";
93
94
  description: string;
94
95
  };
95
96
  frameStartAt: {
96
- control: string;
97
+ control: "number";
97
98
  description: string;
98
99
  };
99
100
  frameEndAt: {
100
- control: string;
101
+ control: "number";
101
102
  description: string;
102
103
  };
103
104
  visible: {
104
- control: string;
105
+ control: "boolean";
105
106
  description: string;
106
107
  };
107
108
  onAnchorTransformationEnd: {
@@ -140,6 +141,14 @@ declare const meta: {
140
141
  action: string;
141
142
  description: string;
142
143
  };
144
+ onContainerRefReady: {
145
+ action: string;
146
+ description: string;
147
+ };
148
+ onSpriteRefReady: {
149
+ action: string;
150
+ description: string;
151
+ };
143
152
  };
144
153
  };
145
154
  export default meta;
@@ -151,3 +160,4 @@ export declare const Filters: Story;
151
160
  export declare const SplitPosition: Story;
152
161
  export declare const SplitStartPos: Story;
153
162
  export declare const StipopGif: Story;
163
+ export declare const WithUnifiedTransformer: Story;
@@ -1,4 +1,8 @@
1
1
  import { PixiBaseSpriteProps, ForwardedRefResponse } from '../../types/BaseProps';
2
2
  import * as React from "react";
3
- declare const PixiImageSprite: React.ForwardRefExoticComponent<PixiBaseSpriteProps & React.RefAttributes<ForwardedRefResponse | null>>;
3
+ import * as PIXI from "pixi.js";
4
+ declare const PixiImageSprite: React.ForwardRefExoticComponent<PixiBaseSpriteProps & {
5
+ onContainerRefReady?: (uniqueId: string, ref: React.MutableRefObject<PIXI.Container | null>) => void;
6
+ onSpriteRefReady?: (uniqueId: string, ref: React.MutableRefObject<PIXI.Container | null>) => void;
7
+ } & React.RefAttributes<ForwardedRefResponse | null>>;
4
8
  export default PixiImageSprite;
@@ -1,22 +1,27 @@
1
- import { StoryObj } from '@storybook/react';
1
+ import { StoryObj } from '@storybook/react-vite';
2
2
  import { Effects } from '../../types/Effects';
3
3
 
4
+ import * as React from "react";
5
+ import * as PIXI from "pixi.js";
4
6
  declare const meta: {
5
7
  title: string;
6
- component: import('react').ForwardRefExoticComponent<import('../../types').PixiBaseSpriteProps & import('react').RefAttributes<import('../../types').ForwardedRefResponse | null>>;
8
+ component: React.ForwardRefExoticComponent<import('../..').PixiBaseSpriteProps & {
9
+ onContainerRefReady?: (uniqueId: string, ref: React.MutableRefObject<PIXI.Container | null>) => void;
10
+ onSpriteRefReady?: (uniqueId: string, ref: React.MutableRefObject<PIXI.Container | null>) => void;
11
+ } & React.RefAttributes<import('../..').ForwardedRefResponse | null>>;
7
12
  decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
8
13
  tags: string[];
9
14
  argTypes: {
10
15
  uniqueId: {
11
- control: string;
16
+ control: "text";
12
17
  description: string;
13
18
  };
14
19
  src: {
15
- control: string;
20
+ control: "text";
16
21
  description: string;
17
22
  };
18
23
  transformation: {
19
- control: string;
24
+ control: "object";
20
25
  description: string;
21
26
  x: {
22
27
  control: string;
@@ -91,25 +96,33 @@ declare const meta: {
91
96
  };
92
97
  };
93
98
  applyTransformer: {
94
- control: string;
99
+ control: "boolean";
95
100
  description: string;
96
101
  };
97
102
  startAt: {
98
- control: string;
103
+ control: "number";
99
104
  description: string;
100
105
  };
101
106
  endAt: {
102
- control: string;
107
+ control: "number";
103
108
  description: string;
104
109
  };
105
110
  visible: {
106
- control: string;
111
+ control: "boolean";
107
112
  description: string;
108
113
  };
109
114
  onAnchorTransformationEnd: {
110
115
  action: string;
111
116
  description: string;
112
117
  };
118
+ onContainerRefReady: {
119
+ action: string;
120
+ description: string;
121
+ };
122
+ onSpriteRefReady: {
123
+ action: string;
124
+ description: string;
125
+ };
113
126
  pointerdown: {
114
127
  action: string;
115
128
  description: string;
@@ -132,5 +145,6 @@ export declare const Filters: Story;
132
145
  export declare const FilterEffects: Story;
133
146
  export declare const Overlays: Story;
134
147
  export declare const PointerTests: Story;
148
+ export declare const WithUnifiedTransformer: Story;
135
149
  export declare const Animation: Story;
136
150
  export declare const PointerAnimation: Story;
@@ -1,5 +1,6 @@
1
1
  import { PixiBaseSpriteProps, ForwardedRefResponse } from '../../types/BaseProps';
2
2
  import * as React from "react";
3
+ import * as PIXI from "pixi.js";
3
4
  export interface PixiLottieSpriteProps extends PixiBaseSpriteProps {
4
5
  uniqueId: string;
5
6
  src: string;
@@ -9,6 +10,8 @@ export interface PixiLottieSpriteProps extends PixiBaseSpriteProps {
9
10
  frameEndAt: number;
10
11
  locked: boolean;
11
12
  loop: boolean;
13
+ onContainerRefReady?: (uniqueId: string, ref: React.MutableRefObject<PIXI.Container | null>) => void;
14
+ onSpriteRefReady?: (uniqueId: string, ref: React.MutableRefObject<PIXI.Container | null>) => void;
12
15
  }
13
16
  declare const PixiLottieSprite: React.ForwardRefExoticComponent<PixiLottieSpriteProps & React.RefAttributes<ForwardedRefResponse | null>>;
14
17
  export default PixiLottieSprite;
@@ -1,21 +1,22 @@
1
- import { StoryObj } from '@storybook/react';
1
+ import { StoryObj } from '@storybook/react-vite';
2
2
 
3
+ import * as React from "react";
3
4
  declare const meta: {
4
5
  title: string;
5
- component: import('react').ForwardRefExoticComponent<import('./PixiLottieSprite').PixiLottieSpriteProps & import('react').RefAttributes<import('../../types').ForwardedRefResponse | null>>;
6
+ component: React.ForwardRefExoticComponent<import('./PixiLottieSprite').PixiLottieSpriteProps & React.RefAttributes<import('../..').ForwardedRefResponse | null>>;
6
7
  decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
7
8
  tags: string[];
8
9
  argTypes: {
9
10
  uniqueId: {
10
- control: string;
11
+ control: "text";
11
12
  description: string;
12
13
  };
13
14
  src: {
14
- control: string;
15
+ control: "text";
15
16
  description: string;
16
17
  };
17
18
  transformation: {
18
- control: string;
19
+ control: "object";
19
20
  description: string;
20
21
  x: {
21
22
  control: string;
@@ -81,27 +82,27 @@ declare const meta: {
81
82
  };
82
83
  };
83
84
  applyTransformer: {
84
- control: string;
85
+ control: "boolean";
85
86
  description: string;
86
87
  };
87
88
  startAt: {
88
- control: string;
89
+ control: "number";
89
90
  description: string;
90
91
  };
91
92
  endAt: {
92
- control: string;
93
+ control: "number";
93
94
  description: string;
94
95
  };
95
96
  frameStartAt: {
96
- control: string;
97
+ control: "number";
97
98
  description: string;
98
99
  };
99
100
  frameEndAt: {
100
- control: string;
101
+ control: "number";
101
102
  description: string;
102
103
  };
103
104
  visible: {
104
- control: string;
105
+ control: "boolean";
105
106
  description: string;
106
107
  };
107
108
  onAnchorTransformationEnd: {
@@ -140,6 +141,14 @@ declare const meta: {
140
141
  action: string;
141
142
  description: string;
142
143
  };
144
+ onContainerRefReady: {
145
+ action: string;
146
+ description: string;
147
+ };
148
+ onSpriteRefReady: {
149
+ action: string;
150
+ description: string;
151
+ };
143
152
  };
144
153
  };
145
154
  export default meta;
@@ -147,3 +156,4 @@ type Story = StoryObj<typeof meta>;
147
156
  export declare const Normal: Story;
148
157
  export declare const Filter: Story;
149
158
  export declare const FadeIn: Story;
159
+ export declare const WithUnifiedTransformer: Story;
@@ -2,6 +2,7 @@ import { PixiBaseSpriteProps, ForwardedRefResponse } from '../../types/BaseProps
2
2
  import { Effects } from '../../types/Effects';
3
3
  import { Animations } from '../../types';
4
4
  import * as React from "react";
5
+ import * as PIXI from "pixi.js";
5
6
  export interface PixiSvgPathSpriteProps extends PixiBaseSpriteProps {
6
7
  uniqueId: string;
7
8
  path: string;
@@ -59,6 +60,8 @@ export interface PixiSvgPathSpriteProps extends PixiBaseSpriteProps {
59
60
  mouseout?: () => void;
60
61
  applyTransformer?: boolean;
61
62
  onAnchorTransformationEnd?: (endData: any) => void;
63
+ onContainerRefReady?: (uniqueId: string, ref: React.MutableRefObject<PIXI.Container | null>) => void;
64
+ onSpriteRefReady?: (uniqueId: string, ref: React.MutableRefObject<PIXI.Container | null>) => void;
62
65
  }
63
66
  declare const PixiSvgPathSprite: React.ForwardRefExoticComponent<PixiSvgPathSpriteProps & React.RefAttributes<ForwardedRefResponse | null>>;
64
67
  export default PixiSvgPathSprite;
@@ -1,21 +1,22 @@
1
- import { StoryObj } from '@storybook/react';
1
+ import { StoryObj } from '@storybook/react-vite';
2
2
 
3
+ import * as React from "react";
3
4
  declare const meta: {
4
5
  title: string;
5
- component: import('react').ForwardRefExoticComponent<import('./PixiSvgPathSprite').PixiSvgPathSpriteProps & import('react').RefAttributes<import('../../types').ForwardedRefResponse | null>>;
6
+ component: React.ForwardRefExoticComponent<import('./PixiSvgPathSprite').PixiSvgPathSpriteProps & React.RefAttributes<import('../..').ForwardedRefResponse | null>>;
6
7
  decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
7
8
  tags: string[];
8
9
  argTypes: {
9
10
  uniqueId: {
10
- control: string;
11
+ control: "text";
11
12
  description: string;
12
13
  };
13
14
  path: {
14
- control: string;
15
+ control: "text";
15
16
  description: string;
16
17
  };
17
18
  transformation: {
18
- control: string;
19
+ control: "object";
19
20
  description: string;
20
21
  x: {
21
22
  control: string;
@@ -81,19 +82,19 @@ declare const meta: {
81
82
  };
82
83
  };
83
84
  applyTransformer: {
84
- control: string;
85
+ control: "boolean";
85
86
  description: string;
86
87
  };
87
88
  startAt: {
88
- control: string;
89
+ control: "number";
89
90
  description: string;
90
91
  };
91
92
  endAt: {
92
- control: string;
93
+ control: "number";
93
94
  description: string;
94
95
  };
95
96
  visible: {
96
- control: string;
97
+ control: "boolean";
97
98
  description: string;
98
99
  };
99
100
  onAnchorTransformationEnd: {
@@ -112,6 +113,14 @@ declare const meta: {
112
113
  action: string;
113
114
  description: string;
114
115
  };
116
+ onContainerRefReady: {
117
+ action: string;
118
+ description: string;
119
+ };
120
+ onSpriteRefReady: {
121
+ action: string;
122
+ description: string;
123
+ };
115
124
  };
116
125
  };
117
126
  export default meta;
@@ -119,3 +128,4 @@ type Story = StoryObj<typeof meta>;
119
128
  export declare const Normal: Story;
120
129
  export declare const FadeIn: Story;
121
130
  export declare const Filters: Story;
131
+ export declare const WithUnifiedTransformer: Story;
@@ -1,4 +1,4 @@
1
- import { StoryObj } from '@storybook/react';
1
+ import { StoryObj } from '@storybook/react-vite';
2
2
 
3
3
  declare const meta: {
4
4
  title: string;
@@ -9,19 +9,19 @@ declare const meta: {
9
9
  children: {
10
10
  description: string;
11
11
  control: {
12
- type: string;
12
+ type: "text";
13
13
  };
14
14
  };
15
15
  startAt: {
16
16
  description: string;
17
17
  control: {
18
- type: string;
18
+ type: "number";
19
19
  };
20
20
  };
21
21
  endAt: {
22
22
  description: string;
23
23
  control: {
24
- type: string;
24
+ type: "number";
25
25
  };
26
26
  };
27
27
  };
@@ -2,6 +2,7 @@ import { PixiBaseSpriteProps, ForwardedRefResponse } from '../../types/BaseProps
2
2
  import { Effects } from '../../types/Effects';
3
3
  import { Animations } from '../../types';
4
4
  import * as React from "react";
5
+ import * as PIXI from "pixi.js";
5
6
  export interface PixiTextSpriteProps extends PixiBaseSpriteProps {
6
7
  text: string;
7
8
  startAt: number;
@@ -81,6 +82,8 @@ export interface PixiTextSpriteProps extends PixiBaseSpriteProps {
81
82
  onTextUpdate?: (data: any) => void;
82
83
  onAnchorTransformationEnd?: (endData: any) => void;
83
84
  onDobuleClick?: () => void;
85
+ onContainerRefReady?: (uniqueId: string, ref: React.MutableRefObject<PIXI.Container | null>) => void;
86
+ onSpriteRefReady?: (uniqueId: string, ref: React.MutableRefObject<PIXI.Container | null>) => void;
84
87
  }
85
88
  declare const PixiTextSprite: React.ForwardRefExoticComponent<PixiTextSpriteProps & React.RefAttributes<ForwardedRefResponse | null>>;
86
89
  export default PixiTextSprite;
@@ -1,21 +1,22 @@
1
- import { StoryObj } from '@storybook/react';
1
+ import { StoryObj } from '@storybook/react-vite';
2
2
 
3
+ import * as React from "react";
3
4
  declare const meta: {
4
5
  title: string;
5
- component: import('react').ForwardRefExoticComponent<import('./PixiTextSprite').PixiTextSpriteProps & import('react').RefAttributes<import('../../types').ForwardedRefResponse | null>>;
6
+ component: React.ForwardRefExoticComponent<import('./PixiTextSprite').PixiTextSpriteProps & React.RefAttributes<import('../..').ForwardedRefResponse | null>>;
6
7
  decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
7
8
  tags: string[];
8
9
  argTypes: {
9
10
  uniqueId: {
10
- control: string;
11
+ control: "text";
11
12
  description: string;
12
13
  };
13
14
  text: {
14
- control: string;
15
+ control: "text";
15
16
  description: string;
16
17
  };
17
18
  transformation: {
18
- control: string;
19
+ control: "object";
19
20
  description: string;
20
21
  x: {
21
22
  control: string;
@@ -81,25 +82,33 @@ declare const meta: {
81
82
  };
82
83
  };
83
84
  applyTransformer: {
84
- control: string;
85
+ control: "boolean";
85
86
  description: string;
86
87
  };
87
88
  startAt: {
88
- control: string;
89
+ control: "number";
89
90
  description: string;
90
91
  };
91
92
  endAt: {
92
- control: string;
93
+ control: "number";
93
94
  description: string;
94
95
  };
95
96
  visible: {
96
- control: string;
97
+ control: "boolean";
97
98
  description: string;
98
99
  };
99
100
  onAnchorTransformationEnd: {
100
101
  action: string;
101
102
  description: string;
102
103
  };
104
+ onContainerRefReady: {
105
+ action: string;
106
+ description: string;
107
+ };
108
+ onSpriteRefReady: {
109
+ action: string;
110
+ description: string;
111
+ };
103
112
  pointerup: {
104
113
  action: string;
105
114
  description: string;
@@ -128,3 +137,4 @@ export declare const Normal: Story;
128
137
  export declare const FadeIn: Story;
129
138
  export declare const Filters: Story;
130
139
  export declare const Draggable: Story;
140
+ export declare const WithUnifiedTransformer: Story;
@@ -0,0 +1,26 @@
1
+ import * as React from "react";
2
+ import * as PIXI from "pixi.js";
3
+ type RefsMap = Record<string, React.MutableRefObject<PIXI.Container | null>>;
4
+ type PixiUnifiedTransformerProps = {
5
+ selectedElementIds: string[];
6
+ containerRefsMap: RefsMap;
7
+ spriteHelperRef?: React.MutableRefObject<any>;
8
+ mouseOverTransformerRef?: React.MutableRefObject<{
9
+ isMouseOver?: boolean;
10
+ isDragging?: boolean;
11
+ dragType?: string | null;
12
+ } | null>;
13
+ isMultiSelect?: boolean;
14
+ selectedGroupId?: string | null;
15
+ selectedElementIdInGroup?: string | null;
16
+ getElementTimeRange?: (uniqueId: string) => {
17
+ start: number;
18
+ end: number;
19
+ } | undefined;
20
+ getRotationByElementId?: (uniqueId: string) => number | undefined;
21
+ onDoubleClickElement?: (uniqueId: string) => void;
22
+ onTransformChange?: (uniqueId: string) => void;
23
+ onTransformCommit?: (uniqueId: string, endData: any) => void;
24
+ };
25
+ declare const PixiUnifiedTransformer: React.FC<PixiUnifiedTransformerProps>;
26
+ export default PixiUnifiedTransformer;
@@ -0,0 +1 @@
1
+ export { default as PixiUnifiedTransformer } from './PixiUnifiedTransformer';