reacthub-pixitweenjs 0.2.107-prealpha.0 → 0.2.107-prealpha.1

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.
@@ -40,6 +40,7 @@ declare const Events: {
40
40
  TRANSFORMER_DRAG_END: string;
41
41
  REVERSE_MODE_START: string;
42
42
  REVERSE_MODE_END: string;
43
+ FONTS_LOADED: string;
43
44
  };
44
45
  declare const GsapPixieContextProvider: React.FC<{
45
46
  children: React.ReactNode;
@@ -52,6 +52,7 @@ export interface PixiBaseSpriteProps {
52
52
  effect?: Effects;
53
53
  overlay?: OverlayTypes;
54
54
  waveform?: Waveforms;
55
+ fontSize?: number;
55
56
  };
56
57
  pointerdown?: () => void;
57
58
  pointerup?: () => void;
@@ -64,7 +65,14 @@ export interface PixiBaseSpriteProps {
64
65
  applyTransformer?: boolean;
65
66
  onAnchorTransformationEnd?: (endData: any) => void;
66
67
  }
68
+ export type containerScale = {
69
+ x: number;
70
+ y: number;
71
+ };
67
72
  export interface ForwardedRefResponse {
68
- getIsTransformerDragging: () => boolean;
69
- getIsMouseOverTransformer: () => boolean;
73
+ getIsTransformerDragging?: () => boolean;
74
+ getIsMouseOverTransformer?: () => boolean;
75
+ setWordWrap?: (width: number, containerScale: containerScale) => void;
76
+ setFontSizeAndTransform?: (width: number, fontSize: number, containerScale: containerScale) => void;
77
+ resetScale?: () => void;
70
78
  }
@@ -5,6 +5,7 @@ export interface Transformation {
5
5
  height: number;
6
6
  rotate: number;
7
7
  scale: [number, number];
8
+ fontSize?: number;
8
9
  }
9
10
  export interface TransformationEnd {
10
11
  uniqueId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reacthub-pixitweenjs",
3
- "version": "0.2.107-prealpha.0",
3
+ "version": "0.2.107-prealpha.1",
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",
@@ -12,7 +12,12 @@
12
12
  "remotion",
13
13
  "react",
14
14
  "tweens",
15
- "animation"
15
+ "animation",
16
+ "movie",
17
+ "timeline",
18
+ "sequence",
19
+ "reacthub",
20
+ "reacthub-pixitweenjs"
16
21
  ],
17
22
  "files": [
18
23
  "dist"
@@ -40,11 +45,7 @@
40
45
  "init-msw": "msw init public/",
41
46
  "release": "standard-version --release-as patch &&npm publish",
42
47
  "release:alpha": "standard-version --prerelease alpha &&npm publish",
43
- "release:beta": "standard-version --prerelease beta &&npm publish",
44
- "release:rc": "standard-version --prerelease rc &&npm publish",
45
- "release:next": "standard-version --prerelease next &&npm publish",
46
- "release:latest": "standard-version --prerelease latest &&npm publish",
47
- "release:prealpha": "standard-version --prerelease prealpha &&npm publish",
48
+ "release:prealpha": "standard-version --prerelease prealpha --tag prealpha &&npm publish",
48
49
  "chromatic": "env-cmd -f .env.dev chromatic --auto-accept-changes",
49
50
  "deploy": "netlify deploy --prod"
50
51
  },
@@ -133,5 +134,8 @@
133
134
  "vite-plugin-environment": "^1.1.3",
134
135
  "vite-plugin-stylelint": "^4.3.0",
135
136
  "vitest": "^0.30.1"
137
+ },
138
+ "dependencies": {
139
+ "@uiw/react-color-sketch": "^2.3.2"
136
140
  }
137
141
  }