@galacean/effects-plugin-orientation-transformer 2.0.0-alpha.5 → 2.0.0-alpha.6
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/composition-transformer-acceler.d.ts +4 -10
- package/dist/index.js +359 -342
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +3 -4
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +360 -343
- package/dist/index.mjs.map +1 -1
- package/dist/transform-vfx-item.d.ts +4 -0
- package/package.json +3 -3
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import type { Composition } from '@galacean/effects';
|
|
2
|
-
export interface CompositionTransformerTarget {
|
|
3
|
-
name: string;
|
|
4
|
-
xMin: number;
|
|
5
|
-
xMax: number;
|
|
6
|
-
yMin: number;
|
|
7
|
-
yMax: number;
|
|
8
|
-
}
|
|
1
|
+
import type { Composition, spec } from '@galacean/effects';
|
|
9
2
|
type EventType = {
|
|
10
3
|
x: number;
|
|
11
4
|
y: number;
|
|
@@ -14,7 +7,8 @@ export declare class CompositionTransformerAcceler {
|
|
|
14
7
|
private readonly composition;
|
|
15
8
|
private readonly targets;
|
|
16
9
|
private readonly records;
|
|
17
|
-
private readonly
|
|
10
|
+
private readonly currentPos;
|
|
11
|
+
private readonly currentRot;
|
|
18
12
|
private gammaRange;
|
|
19
13
|
private betaRange;
|
|
20
14
|
private currentEvent?;
|
|
@@ -22,7 +16,7 @@ export declare class CompositionTransformerAcceler {
|
|
|
22
16
|
update({ x, y }: EventType): void;
|
|
23
17
|
updateOrientation(): void;
|
|
24
18
|
initComposition(): void;
|
|
25
|
-
addTarget(target:
|
|
19
|
+
addTarget(target: spec.PluginGyroscopeTarget): void;
|
|
26
20
|
removeTarget(name: string): void;
|
|
27
21
|
private moveLayer;
|
|
28
22
|
}
|