reacthub-pixitweenjs 0.2.90 → 0.2.92

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.
@@ -1,4 +1,4 @@
1
- import { PixiBaseSpriteProps } from "../../types";
1
+ import * as React from "react";
2
2
  export declare enum SpriteType {
3
3
  Image = "Image",
4
4
  Gif = "Gif",
@@ -7,7 +7,9 @@ export declare enum SpriteType {
7
7
  export interface TimelineTestProps {
8
8
  startAt: number;
9
9
  endAt: number;
10
- spriteType: SpriteType;
11
- pixiBaseProps?: PixiBaseSpriteProps;
12
10
  }
13
- export declare const TimelineTest: () => import("react/jsx-runtime").JSX.Element;
11
+ export interface TimelineProps {
12
+ children?: React.ReactNode;
13
+ sequences: TimelineTestProps[];
14
+ }
15
+ export declare const TimelineTest: (props: TimelineProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,31 +1,10 @@
1
1
  import type { StoryObj } from "@storybook/react";
2
- import { SpriteType } from "./TimelineTest";
3
2
  declare const meta: {
4
3
  title: string;
5
- component: () => import("react/jsx-runtime").JSX.Element;
4
+ component: (props: import("./TimelineTest").TimelineProps) => import("react/jsx-runtime").JSX.Element;
6
5
  tags: string[];
7
6
  argTypes: {
8
- startAt: {
9
- description: string;
10
- control: {
11
- type: string;
12
- };
13
- };
14
- endAt: {
15
- description: string;
16
- control: {
17
- type: string;
18
- };
19
- };
20
- spriteType: {
21
- description: string;
22
- control: {
23
- type: string;
24
- options: SpriteType[];
25
- description: string;
26
- };
27
- };
28
- pixiBaseProps: {
7
+ sequences: {
29
8
  description: string;
30
9
  control: {
31
10
  type: string;
@@ -36,3 +15,4 @@ declare const meta: {
36
15
  export default meta;
37
16
  type Story = StoryObj<typeof meta>;
38
17
  export declare const Normal: Story;
18
+ export declare const GifTest: Story;
@@ -0,0 +1,19 @@
1
+ import { PixiBaseSpriteProps } from "../../types";
2
+ export declare enum SpriteType {
3
+ Image = "Image",
4
+ Gif = "Gif",
5
+ Video = "Video"
6
+ }
7
+ export interface TimelineTestProps {
8
+ startAt: number;
9
+ endAt: number;
10
+ spriteType: SpriteType;
11
+ pixiBaseProps?: PixiBaseSpriteProps;
12
+ }
13
+ export declare const TimelineWithGif: {
14
+ (props: TimelineTestProps): import("react/jsx-runtime").JSX.Element;
15
+ whyDidYouRender: {
16
+ logOnDifferentValues: boolean;
17
+ customName: string;
18
+ };
19
+ };
@@ -18,3 +18,28 @@ export declare const ImageProps: {
18
18
  };
19
19
  initialAlpha: number;
20
20
  };
21
+ export declare const GifProps: {
22
+ uniqueId: string;
23
+ src: string;
24
+ locked: boolean;
25
+ loop: boolean;
26
+ applyTransformer: boolean;
27
+ startAt: number;
28
+ endAt: number;
29
+ frameStartAt: number;
30
+ frameEndAt: number;
31
+ transformation: {
32
+ x: number;
33
+ y: number;
34
+ width: number;
35
+ height: number;
36
+ anchor: number;
37
+ rotation: number;
38
+ alpha: number;
39
+ scale: number;
40
+ tint: number;
41
+ blendMode: number;
42
+ colorCorrection: {};
43
+ };
44
+ initialAlpha: number;
45
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reacthub-pixitweenjs",
3
- "version": "0.2.90",
3
+ "version": "0.2.92",
4
4
  "description": "reacthub-pixitweenjs is a library that provides a powerful combination of React, PixiJS, GSAP, and image manipulation capabilities in a timeline sequence. With this library, you can easily create stunning animations and interactive graphics for your React applications",
5
5
  "author": "khanzzirfan <reacthub.ai@gmail.com>",
6
6
  "main": "dist/index.es.js",