reacthub-pixitweenjs 0.2.27 → 0.2.29
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/dist/{utils → components/PixiTransformer}/PixiTransformer.d.ts +2 -1
- package/dist/components/PixiTransformer/Transformer.d.ts +39 -0
- package/dist/components/PixiTransformer/applyEventProps.d.ts +10 -0
- package/dist/components/PixiTransformer/index.d.ts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.es.js +841 -828
- package/dist/index.umd.js +53 -53
- package/package.json +1 -1
- package/dist/hocs/WithFilterContainer.d.ts +0 -42
|
@@ -2,6 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
type PixiTransformerProps = {
|
|
3
3
|
pixiTransformerRef: React.MutableRefObject<any>;
|
|
4
4
|
imageRef: React.MutableRefObject<any>;
|
|
5
|
+
isMounted: boolean;
|
|
5
6
|
transformCommit?: (data: any) => void;
|
|
6
7
|
transformChange?: (data: any) => void;
|
|
7
8
|
mouseoverEvent?: (flag: boolean) => void;
|
|
@@ -13,5 +14,5 @@ type PixiTransformerProps = {
|
|
|
13
14
|
* @param param0
|
|
14
15
|
* @returns
|
|
15
16
|
*/
|
|
16
|
-
declare const PixiTransformer: ({ pixiTransformerRef, imageRef, transformCommit, transformChange, mouseoverEvent, onDoubleClick, uniqueId, }: PixiTransformerProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare const PixiTransformer: ({ pixiTransformerRef, imageRef, isMounted, transformCommit, transformChange, mouseoverEvent, onDoubleClick, uniqueId, }: PixiTransformerProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
18
|
export default PixiTransformer;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as PIXI from "pixi.js";
|
|
2
|
+
import { Matrix } from "@pixi/math";
|
|
3
|
+
import { TransformerHandle as TransformerHandleImpl } from "@pixi-essentials/transformer";
|
|
4
|
+
import type { ITransformerCursors, ITransformerStyle, ITransformerHandleStyle } from "@pixi-essentials/transformer";
|
|
5
|
+
import * as React from "react";
|
|
6
|
+
/** @internal */
|
|
7
|
+
export type TransformerProps = {
|
|
8
|
+
boundingBoxes?: "all" | "groupOnly" | "none";
|
|
9
|
+
boxScalingEnabled?: boolean;
|
|
10
|
+
boxScalingTolerance?: number;
|
|
11
|
+
boxRotationEnabled?: boolean;
|
|
12
|
+
boxRotationTolerance?: number;
|
|
13
|
+
centeredScaling?: boolean;
|
|
14
|
+
cursors?: Partial<ITransformerCursors>;
|
|
15
|
+
enabledHandles?: Array<string>;
|
|
16
|
+
group?: PIXI.DisplayObject[];
|
|
17
|
+
handleConstructor?: typeof TransformerHandleImpl;
|
|
18
|
+
handleStyle?: Partial<ITransformerHandleStyle>;
|
|
19
|
+
lockAspectRatio?: boolean;
|
|
20
|
+
projectionTransform?: Matrix;
|
|
21
|
+
rotateEnabled?: boolean;
|
|
22
|
+
rotationSnaps?: number[];
|
|
23
|
+
rotationSnapTolerance?: number;
|
|
24
|
+
scaleEnabled?: boolean;
|
|
25
|
+
skewEnabled?: boolean;
|
|
26
|
+
skewRadius?: number;
|
|
27
|
+
skewSnaps?: number[];
|
|
28
|
+
skewSnapTolerance?: number;
|
|
29
|
+
translateEnabled?: boolean;
|
|
30
|
+
transientGroupTilt?: boolean;
|
|
31
|
+
transformchange?: (e: any) => void;
|
|
32
|
+
wireframeStyle?: Partial<ITransformerStyle>;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Transformer component
|
|
36
|
+
*
|
|
37
|
+
* @see https://github.com/SukantPal/pixi-essentials/tree/master/packages/transformer
|
|
38
|
+
*/
|
|
39
|
+
export declare const Transformer: React.FC<TransformerProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as PIXI from "pixi.js";
|
|
2
|
+
/**
|
|
3
|
+
* Removes old listeners and applies the new ones passed in the props
|
|
4
|
+
*
|
|
5
|
+
* @param displayObject - display-object emitting events
|
|
6
|
+
* @param events - object mapping handler prop-names to the fired events
|
|
7
|
+
* @param oldProps - old props. If calling on first props being passed, this should be `{}`.
|
|
8
|
+
* @param newProps - new props.
|
|
9
|
+
*/
|
|
10
|
+
export declare function applyEventProps(displayObject: PIXI.DisplayObject, events: Record<string, string>, oldProps: any, newProps: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Transformer";
|