pixi-effects 0.1.0 → 0.2.0
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/README.md +107 -7
- package/dist/Base-B1Tdn0Cv.d.cts +92 -0
- package/dist/Base-Bh_VSusi.d.ts +92 -0
- package/dist/Composition-BI5HZJFL.cjs +13 -0
- package/dist/Composition-BI5HZJFL.cjs.map +1 -0
- package/dist/Composition-IO7ZN32J.js +4 -0
- package/dist/Composition-IO7ZN32J.js.map +1 -0
- package/dist/Controller.d.cts +2 -1
- package/dist/Controller.d.ts +2 -1
- package/dist/Movie-CcR6h2jO.d.cts +82 -0
- package/dist/Movie-D-n8glA6.d.ts +82 -0
- package/dist/chunk-64IHCYYN.cjs +355 -0
- package/dist/chunk-64IHCYYN.cjs.map +1 -0
- package/dist/chunk-7OIWYXGV.cjs +1860 -0
- package/dist/chunk-7OIWYXGV.cjs.map +1 -0
- package/dist/chunk-H55V3U56.js +353 -0
- package/dist/chunk-H55V3U56.js.map +1 -0
- package/dist/chunk-VJCDG6YG.js +1847 -0
- package/dist/chunk-VJCDG6YG.js.map +1 -0
- package/dist/index.cjs +57 -1784
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +44 -3
- package/dist/index.d.ts +44 -3
- package/dist/index.js +51 -1782
- package/dist/index.js.map +1 -1
- package/dist/three.cjs +161 -0
- package/dist/three.cjs.map +1 -0
- package/dist/three.d.cts +79 -0
- package/dist/three.d.ts +79 -0
- package/dist/three.js +157 -0
- package/dist/three.js.map +1 -0
- package/dist/{Movie-Bp66rkaC.d.cts → types-CNBilhpz.d.cts} +32 -76
- package/dist/{Movie-Bp66rkaC.d.ts → types-CNBilhpz.d.ts} +32 -76
- package/package.json +16 -5
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export { F as FrameEvent, M as Movie, a as MovieOptions, P as ProgressEvent, R as RenderOptions } from './Movie-CcR6h2jO.cjs';
|
|
2
|
+
import { S as Sequence } from './Base-B1Tdn0Cv.cjs';
|
|
3
|
+
import { S as SequenceSpec, C as CompositionShape, I as ImageSequenceSpec, a as SequenceCommon } from './types-CNBilhpz.cjs';
|
|
4
|
+
export { A as AssetSpec, b as AudioSequenceSpec, c as CameraSequenceSpec, d as ChromaKeyFilterSpec, e as CircleShapeSpec, f as CompositionSequenceSpec, g as CompositionSpec, h as CrossfadeTransition, i as CustomFilterSpec, D as DipTransition, j as DissolveTransition, E as EllipseShapeSpec, k as Expr, F as FilterSpec, l as IrisTransition, K as Keyframe, L as LineShapeSpec, P as PathShapeSpec, m as PolygonShapeSpec, n as PropValue, o as Props, R as RectShapeSpec, p as ShapeSequenceSpec, q as SlideTransition, T as TextSequenceSpec, r as TransitionCommon, s as TransitionSpec, V as VideoSequenceSpec, W as WipeTransition, Z as ZoomTransition } from './types-CNBilhpz.cjs';
|
|
3
5
|
import 'pixi.js';
|
|
4
6
|
import 'gsap';
|
|
5
7
|
|
|
8
|
+
type SequenceCtor = {
|
|
9
|
+
new (spec: SequenceSpec, parent: CompositionShape | null, root: CompositionShape): Sequence;
|
|
10
|
+
};
|
|
11
|
+
/** Register an external sequence type. Later registrations overwrite earlier ones. */
|
|
12
|
+
declare function registerSequenceType(type: string, ctor: SequenceCtor): void;
|
|
13
|
+
|
|
6
14
|
/**
|
|
7
15
|
* Ken Burns preset for a single image. Returns an `ImageSequenceSpec` ready
|
|
8
16
|
* to drop into a composition's `sequences[]`.
|
|
@@ -76,4 +84,37 @@ interface KenBurnsPosition {
|
|
|
76
84
|
}
|
|
77
85
|
declare function kenBurns(opts: KenBurnsOptions): ImageSequenceSpec;
|
|
78
86
|
|
|
79
|
-
|
|
87
|
+
interface WithFadeOptions {
|
|
88
|
+
/** Fade-in duration (seconds), anchored to the sequence's `at`. */
|
|
89
|
+
in?: number;
|
|
90
|
+
/** Fade-out duration (seconds), anchored to `at + duration`. Requires `duration` to be set on the spec. */
|
|
91
|
+
out?: number;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Add alpha fade-in / fade-out keyframes to a sequence spec. Mutates and
|
|
95
|
+
* returns the spec so the result can be dropped straight into `sequences[]`.
|
|
96
|
+
*
|
|
97
|
+
* ```ts
|
|
98
|
+
* sequences: [
|
|
99
|
+
* withFade(
|
|
100
|
+
* kenBurns({ asset: 'p', at: 0, duration: 6, motion: 'scale' }),
|
|
101
|
+
* { in: 0.5, out: 0.5 },
|
|
102
|
+
* ),
|
|
103
|
+
*
|
|
104
|
+
* withFade(
|
|
105
|
+
* { type: 'text', text: 'hi', at: 5, duration: 3, initial: { x: 'GW/2' } },
|
|
106
|
+
* { in: 0.4 },
|
|
107
|
+
* ),
|
|
108
|
+
* ]
|
|
109
|
+
* ```
|
|
110
|
+
*
|
|
111
|
+
* The added keyframes are layered on top of any keyframes the spec already
|
|
112
|
+
* has — kenBurns's scale / position / rotation tweens keep working.
|
|
113
|
+
*
|
|
114
|
+
* The keyframe `at` values use the sequence's own `at` and `at + duration`,
|
|
115
|
+
* which the runtime interprets parent-relative. Works the same whether the
|
|
116
|
+
* spec sits directly under the root composition or nested inside another.
|
|
117
|
+
*/
|
|
118
|
+
declare function withFade<T extends SequenceCommon>(spec: T, opts: WithFadeOptions): T;
|
|
119
|
+
|
|
120
|
+
export { ImageSequenceSpec, type KenBurnsOptions, SequenceCommon, type SequenceCtor, SequenceSpec, type WithFadeOptions, kenBurns, registerSequenceType, withFade };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export { F as FrameEvent, M as Movie, a as MovieOptions, P as ProgressEvent, R as RenderOptions } from './Movie-D-n8glA6.js';
|
|
2
|
+
import { S as Sequence } from './Base-Bh_VSusi.js';
|
|
3
|
+
import { S as SequenceSpec, C as CompositionShape, I as ImageSequenceSpec, a as SequenceCommon } from './types-CNBilhpz.js';
|
|
4
|
+
export { A as AssetSpec, b as AudioSequenceSpec, c as CameraSequenceSpec, d as ChromaKeyFilterSpec, e as CircleShapeSpec, f as CompositionSequenceSpec, g as CompositionSpec, h as CrossfadeTransition, i as CustomFilterSpec, D as DipTransition, j as DissolveTransition, E as EllipseShapeSpec, k as Expr, F as FilterSpec, l as IrisTransition, K as Keyframe, L as LineShapeSpec, P as PathShapeSpec, m as PolygonShapeSpec, n as PropValue, o as Props, R as RectShapeSpec, p as ShapeSequenceSpec, q as SlideTransition, T as TextSequenceSpec, r as TransitionCommon, s as TransitionSpec, V as VideoSequenceSpec, W as WipeTransition, Z as ZoomTransition } from './types-CNBilhpz.js';
|
|
3
5
|
import 'pixi.js';
|
|
4
6
|
import 'gsap';
|
|
5
7
|
|
|
8
|
+
type SequenceCtor = {
|
|
9
|
+
new (spec: SequenceSpec, parent: CompositionShape | null, root: CompositionShape): Sequence;
|
|
10
|
+
};
|
|
11
|
+
/** Register an external sequence type. Later registrations overwrite earlier ones. */
|
|
12
|
+
declare function registerSequenceType(type: string, ctor: SequenceCtor): void;
|
|
13
|
+
|
|
6
14
|
/**
|
|
7
15
|
* Ken Burns preset for a single image. Returns an `ImageSequenceSpec` ready
|
|
8
16
|
* to drop into a composition's `sequences[]`.
|
|
@@ -76,4 +84,37 @@ interface KenBurnsPosition {
|
|
|
76
84
|
}
|
|
77
85
|
declare function kenBurns(opts: KenBurnsOptions): ImageSequenceSpec;
|
|
78
86
|
|
|
79
|
-
|
|
87
|
+
interface WithFadeOptions {
|
|
88
|
+
/** Fade-in duration (seconds), anchored to the sequence's `at`. */
|
|
89
|
+
in?: number;
|
|
90
|
+
/** Fade-out duration (seconds), anchored to `at + duration`. Requires `duration` to be set on the spec. */
|
|
91
|
+
out?: number;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Add alpha fade-in / fade-out keyframes to a sequence spec. Mutates and
|
|
95
|
+
* returns the spec so the result can be dropped straight into `sequences[]`.
|
|
96
|
+
*
|
|
97
|
+
* ```ts
|
|
98
|
+
* sequences: [
|
|
99
|
+
* withFade(
|
|
100
|
+
* kenBurns({ asset: 'p', at: 0, duration: 6, motion: 'scale' }),
|
|
101
|
+
* { in: 0.5, out: 0.5 },
|
|
102
|
+
* ),
|
|
103
|
+
*
|
|
104
|
+
* withFade(
|
|
105
|
+
* { type: 'text', text: 'hi', at: 5, duration: 3, initial: { x: 'GW/2' } },
|
|
106
|
+
* { in: 0.4 },
|
|
107
|
+
* ),
|
|
108
|
+
* ]
|
|
109
|
+
* ```
|
|
110
|
+
*
|
|
111
|
+
* The added keyframes are layered on top of any keyframes the spec already
|
|
112
|
+
* has — kenBurns's scale / position / rotation tweens keep working.
|
|
113
|
+
*
|
|
114
|
+
* The keyframe `at` values use the sequence's own `at` and `at + duration`,
|
|
115
|
+
* which the runtime interprets parent-relative. Works the same whether the
|
|
116
|
+
* spec sits directly under the root composition or nested inside another.
|
|
117
|
+
*/
|
|
118
|
+
declare function withFade<T extends SequenceCommon>(spec: T, opts: WithFadeOptions): T;
|
|
119
|
+
|
|
120
|
+
export { ImageSequenceSpec, type KenBurnsOptions, SequenceCommon, type SequenceCtor, SequenceSpec, type WithFadeOptions, kenBurns, registerSequenceType, withFade };
|