reacthub-pixitweenjs 0.2.109-alpha.4 → 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 (40) hide show
  1. package/LICENSE +17 -17
  2. package/LICENSE.md +269 -21
  3. package/README.md +398 -38
  4. package/dist/assets/icon/transformericons/icons.d.ts +8 -0
  5. package/dist/components/PixiAudioSprite/PixiAudioSprite.d.ts +3 -0
  6. package/dist/components/PixiAudioSprite/PixiAudioSprite.stories.d.ts +4 -97
  7. package/dist/components/PixiGifSprite/PixiGifGsapSync.d.ts +3 -0
  8. package/dist/components/PixiGifSprite/PixiGifSprite.stories.d.ts +21 -11
  9. package/dist/components/PixiImageSprite/PixiImageSprite.d.ts +5 -1
  10. package/dist/components/PixiImageSprite/PixiImageSprite.stories.d.ts +23 -9
  11. package/dist/components/PixiLottieSprite/PixiLottieSprite.d.ts +3 -0
  12. package/dist/components/PixiLottieSprite/PixiLottieSprite.stories.d.ts +21 -11
  13. package/dist/components/PixiSVGSprite/PixiSvgPathSprite.d.ts +3 -0
  14. package/dist/components/PixiSVGSprite/PixiSvgPathSprite.stories.d.ts +19 -9
  15. package/dist/components/PixiSequence/PixiSequence.stories.d.ts +4 -4
  16. package/dist/components/PixiTextSprite/PixiTextSprite.d.ts +3 -0
  17. package/dist/components/PixiTextSprite/PixiTextSprite.stories.d.ts +19 -9
  18. package/dist/components/PixiUnifiedTransformer/PixiUnifiedTransformer.d.ts +26 -0
  19. package/dist/components/PixiUnifiedTransformer/index.d.ts +1 -0
  20. package/dist/components/PixiVideoSprite/PixiVideoSprite.d.ts +3 -0
  21. package/dist/components/PixiVideoSprite/PixiVideoSprite.stories.d.ts +24 -14
  22. package/dist/components/index.d.ts +1 -0
  23. package/dist/favicon.svg +41 -0
  24. package/dist/hocs/AbstractContainer.d.ts +16 -0
  25. package/dist/index.es.js +3198 -4488
  26. package/dist/index.umd.js +37 -37
  27. package/dist/pixitweenjs-logo-dark.svg +98 -0
  28. package/dist/pixitweenjs-logo.svg +97 -0
  29. package/dist/stories/Features/TimelineTest.stories.d.ts +3 -2
  30. package/package.json +24 -21
  31. package/dist/components/PixiTransformer/MenuIcons.d.ts +0 -40
  32. package/dist/components/PixiTransformer/MenuUtils.d.ts +0 -2
  33. package/dist/components/PixiTransformer/PixiColorPicker.d.ts +0 -14
  34. package/dist/components/PixiTransformer/PixiDropdownMenu.d.ts +0 -15
  35. package/dist/components/PixiTransformer/PixiMenuText.d.ts +0 -2
  36. package/dist/components/PixiTransformer/PixiTransformer.d.ts +0 -20
  37. package/dist/components/PixiTransformer/PixiTransformerMenu.d.ts +0 -9
  38. package/dist/components/PixiTransformer/Transformer.d.ts +0 -39
  39. package/dist/components/PixiTransformer/applyEventProps.d.ts +0 -10
  40. package/dist/components/PixiTransformer/index.d.ts +0 -1
@@ -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';
@@ -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 PixiVideoSpriteProps extends PixiBaseSpriteProps {
4
5
  uniqueId: string;
5
6
  src: string;
@@ -17,6 +18,8 @@ export interface PixiVideoSpriteProps extends PixiBaseSpriteProps {
17
18
  applyTransformer?: boolean;
18
19
  onAnchorTransformationEnd?: (endData: any) => void;
19
20
  fps?: number;
21
+ onContainerRefReady?: (uniqueId: string, ref: React.MutableRefObject<PIXI.Container | null>) => void;
22
+ onSpriteRefReady?: (uniqueId: string, ref: React.MutableRefObject<PIXI.Container | null>) => void;
20
23
  }
21
24
  declare const PixiVideoSprite: React.ForwardRefExoticComponent<PixiVideoSpriteProps & React.RefAttributes<ForwardedRefResponse | null>>;
22
25
  export default PixiVideoSprite;
@@ -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('./PixiVideoSprite').PixiVideoSpriteProps & import('react').RefAttributes<import('../../types').ForwardedRefResponse | null>>;
6
+ component: React.ForwardRefExoticComponent<import('./PixiVideoSprite').PixiVideoSpriteProps & 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,35 +82,35 @@ 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
  mute: {
104
- control: string;
105
+ control: "boolean";
105
106
  description: string;
106
107
  };
107
108
  locked: {
108
- control: string;
109
+ control: "boolean";
109
110
  description: string;
110
111
  };
111
112
  visible: {
112
- control: string;
113
+ control: "boolean";
113
114
  description: string;
114
115
  };
115
116
  onAnchorTransformationEnd: {
@@ -121,7 +122,15 @@ declare const meta: {
121
122
  description: string;
122
123
  };
123
124
  fps: {
124
- control: string;
125
+ control: "number";
126
+ description: string;
127
+ };
128
+ onContainerRefReady: {
129
+ action: string;
130
+ description: string;
131
+ };
132
+ onSpriteRefReady: {
133
+ action: string;
125
134
  description: string;
126
135
  };
127
136
  };
@@ -134,3 +143,4 @@ export declare const Filters: Story;
134
143
  export declare const SplitPosition: Story;
135
144
  export declare const SplitStartPos: Story;
136
145
  export declare const VideoFps: Story;
146
+ export declare const WithUnifiedTransformer: Story;
@@ -8,3 +8,4 @@ export * from './PixiAnimatedSprite';
8
8
  export * from './PixiSequence';
9
9
  export * from './PixiRemotionSprite';
10
10
  export * from './PixiLottieSprite';
11
+ export * from './PixiUnifiedTransformer';
@@ -0,0 +1,41 @@
1
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
2
+ <defs>
3
+ <!-- Gradient for the favicon -->
4
+ <linearGradient id="faviconGradient" x1="0%" y1="0%" x2="100%" y2="100%">
5
+ <stop offset="0%" style="stop-color:#4FC3F7;stop-opacity:1" />
6
+ <stop offset="100%" style="stop-color:#0288D1;stop-opacity:1" />
7
+ </linearGradient>
8
+ </defs>
9
+
10
+ <!-- Background circle -->
11
+ <circle cx="16" cy="16" r="15" fill="url(#faviconGradient)"/>
12
+
13
+ <!-- Film strip simplified -->
14
+ <g>
15
+ <!-- Main frame -->
16
+ <rect x="6" y="8" width="20" height="16" rx="2" fill="white" opacity="0.9"/>
17
+
18
+ <!-- Film holes - top -->
19
+ <rect x="7" y="9" width="2" height="1.5" rx="0.5" fill="url(#faviconGradient)"/>
20
+ <rect x="11" y="9" width="2" height="1.5" rx="0.5" fill="url(#faviconGradient)"/>
21
+ <rect x="15" y="9" width="2" height="1.5" rx="0.5" fill="url(#faviconGradient)"/>
22
+ <rect x="19" y="9" width="2" height="1.5" rx="0.5" fill="url(#faviconGradient)"/>
23
+ <rect x="23" y="9" width="2" height="1.5" rx="0.5" fill="url(#faviconGradient)"/>
24
+
25
+ <!-- Film holes - bottom -->
26
+ <rect x="7" y="21.5" width="2" height="1.5" rx="0.5" fill="url(#faviconGradient)"/>
27
+ <rect x="11" y="21.5" width="2" height="1.5" rx="0.5" fill="url(#faviconGradient)"/>
28
+ <rect x="15" y="21.5" width="2" height="1.5" rx="0.5" fill="url(#faviconGradient)"/>
29
+ <rect x="19" y="21.5" width="2" height="1.5" rx="0.5" fill="url(#faviconGradient)"/>
30
+ <rect x="23" y="21.5" width="2" height="1.5" rx="0.5" fill="url(#faviconGradient)"/>
31
+
32
+ <!-- Timeline bars inside -->
33
+ <rect x="8" y="13" width="6" height="1" rx="0.5" fill="url(#faviconGradient)" opacity="0.5"/>
34
+ <rect x="8" y="15.5" width="8" height="1" rx="0.5" fill="url(#faviconGradient)" opacity="0.5"/>
35
+ <rect x="8" y="18" width="5" height="1" rx="0.5" fill="url(#faviconGradient)" opacity="0.5"/>
36
+
37
+ <!-- Play button -->
38
+ <circle cx="20" cy="16" r="4" fill="url(#faviconGradient)" opacity="0.9"/>
39
+ <polygon points="19,14 19,18 23,16" fill="white"/>
40
+ </g>
41
+ </svg>
@@ -1,5 +1,6 @@
1
1
  import { PixiBaseSpriteProps, ForwardedRefResponse, containerScale } from '../types/BaseProps';
2
2
  import * as React from "react";
3
+ import * as PIXI from "pixi.js";
3
4
  interface AbstractContainerProps extends PixiBaseSpriteProps {
4
5
  ignoreTlForVideo?: boolean;
5
6
  isText?: boolean;
@@ -9,6 +10,21 @@ interface AbstractContainerProps extends PixiBaseSpriteProps {
9
10
  isTextEditMode?: boolean;
10
11
  handleDragWordWrap?: (width: number, containerScale: containerScale) => void;
11
12
  handleDragFontSize?: (width: number, fontSize: number, containerScale: containerScale) => void;
13
+ onDelete?: () => void;
14
+ onDuplicate?: () => void;
15
+ onBringToFront?: () => void;
16
+ onSendToBack?: () => void;
17
+ onLock?: () => void;
18
+ onUnlock?: () => void;
19
+ /**
20
+ * Called when the PIXI container ref is ready. Allows higher-level overlay transformers
21
+ * to target this element via its `uniqueId`.
22
+ */
23
+ onContainerRefReady?: (uniqueId: string, ref: React.MutableRefObject<PIXI.Container | null>) => void;
24
+ /**
25
+ * Called when the inner content group ref is ready (useful for text elements).
26
+ */
27
+ onSpriteRefReady?: (uniqueId: string, ref: React.MutableRefObject<PIXI.Container | null>) => void;
12
28
  }
13
29
  declare const AbstractContainer: React.ForwardRefExoticComponent<AbstractContainerProps & React.RefAttributes<ForwardedRefResponse | null>>;
14
30
  export default AbstractContainer;