@pixerate/editor 0.231.1 → 0.233.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/dist/animation-editor/compile.d.cts +3 -0
- package/dist/animation-editor/compile.d.ts +3 -0
- package/dist/animation-editor/controller.d.cts +67 -2
- package/dist/animation-editor/controller.d.ts +67 -2
- package/dist/animation-editor/edit.d.cts +1 -1
- package/dist/animation-editor/edit.d.ts +1 -1
- package/dist/animation-editor/evaluate.d.cts +8 -1
- package/dist/animation-editor/evaluate.d.ts +8 -1
- package/dist/animation-editor/index.cjs +1202 -371
- package/dist/animation-editor/index.d.cts +3 -0
- package/dist/animation-editor/index.d.ts +3 -0
- package/dist/animation-editor/index.js +1032 -201
- package/dist/animation-editor/issues.d.cts +28 -0
- package/dist/animation-editor/issues.d.ts +28 -0
- package/dist/animation-editor/layer-edit.d.cts +55 -0
- package/dist/animation-editor/layer-edit.d.ts +55 -0
- package/dist/animation-editor/layer-tools.d.cts +11 -0
- package/dist/animation-editor/layer-tools.d.ts +11 -0
- package/dist/animation-editor/layers.d.cts +166 -0
- package/dist/animation-editor/layers.d.ts +166 -0
- package/dist/animation-editor/parse.d.cts +2 -0
- package/dist/animation-editor/parse.d.ts +2 -0
- package/dist/animation-editor/types.d.cts +44 -1
- package/dist/animation-editor/types.d.ts +44 -1
- package/dist/canvas/index.cjs +10 -10
- package/dist/canvas/index.js +4 -4
- package/dist/chunk-6RZVFYGJ.cjs +255 -0
- package/dist/{chunk-C73U5UI3.cjs → chunk-A7PQNIBX.cjs} +14 -14
- package/dist/{chunk-ERJA5CGT.cjs → chunk-DGWOGQJ5.cjs} +8 -1
- package/dist/{chunk-TYCJGFCF.js → chunk-EUKY4KFX.js} +8 -1
- package/dist/chunk-I277KJLQ.js +255 -0
- package/dist/{chunk-OPSK22DL.cjs → chunk-JAOSL334.cjs} +24 -7
- package/dist/{chunk-TCZ2J7PR.js → chunk-SIK3LT6M.js} +26 -9
- package/dist/{chunk-SBPGIZQN.js → chunk-TEFQISBY.js} +1 -1
- package/dist/{chunk-CSM5T6SE.js → chunk-WDDUPWVG.js} +1 -1
- package/dist/{chunk-5T3H7CGG.cjs → chunk-ZQIWBJGH.cjs} +7 -7
- package/dist/effects/conformance.d.cts +4 -1
- package/dist/effects/conformance.d.ts +4 -1
- package/dist/effects/errors.d.cts +6 -1
- package/dist/effects/errors.d.ts +6 -1
- package/dist/effects/fake-templates.d.cts +17 -0
- package/dist/effects/fake-templates.d.ts +17 -0
- package/dist/effects/fake.d.cts +6 -1
- package/dist/effects/fake.d.ts +6 -1
- package/dist/effects/index.cjs +322 -67
- package/dist/effects/index.d.cts +1 -0
- package/dist/effects/index.d.ts +1 -0
- package/dist/effects/index.js +258 -3
- package/dist/effects/templates.d.cts +56 -0
- package/dist/effects/templates.d.ts +56 -0
- package/dist/effects/types.d.cts +212 -0
- package/dist/effects/types.d.ts +212 -0
- package/dist/image-editor/index.cjs +16 -16
- package/dist/image-editor/index.js +4 -4
- package/dist/paint-editor/index.cjs +10 -10
- package/dist/paint-editor/index.js +5 -5
- package/dist/vector/index.cjs +6 -6
- package/dist/vector/index.js +1 -1
- package/dist/video-editor/index.cjs +339 -339
- package/dist/video-editor/index.js +5 -5
- package/package.json +1 -1
- package/skills/pixerate-animation-editor/SKILL.md +37 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createEffectAuthoringSession
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-TEFQISBY.js";
|
|
4
4
|
import {
|
|
5
5
|
VIDEO_ADJUSTMENT_SCOPES,
|
|
6
6
|
VIDEO_BLEND_MODES,
|
|
@@ -149,11 +149,11 @@ import {
|
|
|
149
149
|
videoTransitionEase,
|
|
150
150
|
videoValueAt,
|
|
151
151
|
videoWipeRect
|
|
152
|
-
} from "../chunk-
|
|
153
|
-
import "../chunk-EHLOCVWB.js";
|
|
152
|
+
} from "../chunk-WDDUPWVG.js";
|
|
154
153
|
import {
|
|
155
154
|
namedWithSuggestion
|
|
156
|
-
} from "../chunk-
|
|
155
|
+
} from "../chunk-EUKY4KFX.js";
|
|
156
|
+
import "../chunk-EHLOCVWB.js";
|
|
157
157
|
import {
|
|
158
158
|
CAMERA_MOVE_MAX_MS,
|
|
159
159
|
EffectsSlot,
|
|
@@ -163,7 +163,7 @@ import {
|
|
|
163
163
|
isEffectError,
|
|
164
164
|
resolveCameraMoveSpec,
|
|
165
165
|
sampleEffectCameraMove
|
|
166
|
-
} from "../chunk-
|
|
166
|
+
} from "../chunk-SIK3LT6M.js";
|
|
167
167
|
import "../chunk-V2ZCJRDM.js";
|
|
168
168
|
import {
|
|
169
169
|
defineEditorDocument
|
package/package.json
CHANGED
|
@@ -165,6 +165,13 @@ refuse.
|
|
|
165
165
|
| `list_camera_moves` | List the provider's camera moves for a `role` (`transition`: how the camera gets into a shot; `hold`: how it moves while the shot holds), with `durationMs` and `cut`. Returns `available: false` without camera moves. Call before `set_shot_camera_move`; `describe_effect` gives a move's controls and presets. |
|
|
166
166
|
| `set_shot_camera_move` | Give a shot a camera move (`shot`, `role`, `move`, optional `ms` for a transition, `preset`, `values`): it is saved on the shot's camera as `in` or `during`. Returns the shot's camera and the `window` (ms) the move plays in. A wrong-role id is refused naming the moves that fit. |
|
|
167
167
|
| `clear_shot_camera_move` | Remove a shot's move for a `role`, keeping its framing. Returns the shot's camera (null when nothing is left). |
|
|
168
|
+
| `list_shot_layers` | See every shot's layers (ids, effect, subject, role, rect, `start` / `end` in ms) and its transition. Works without a provider. Call before changing a layer. |
|
|
169
|
+
| `add_shot_layer` | Add a layer to a shot: a provider effect (a generator background, a filter applied to a `subject`, an overlay or title) or a bare `subject` (picture, SVG, words). Fills the screen unless given a `rect`; shows until the next shot unless `until` says. Returns the layer with its id. |
|
|
170
|
+
| `update_shot_layer` | Change a layer's fields; list optional ones in `clear` to remove them. Returns the layer. |
|
|
171
|
+
| `move_shot_layer` | Restack a layer in its shot (`index`, 0 = bottom). |
|
|
172
|
+
| `remove_shot_layer` | Remove a layer. |
|
|
173
|
+
| `set_shot_transition` | Set the transition into a shot from the one before (a provider effect with use `transition`, its `ms`, `preset`, `values`). Not on the first shot. Returns the transition with `start` / `end`. |
|
|
174
|
+
| `clear_shot_transition` | Remove a shot's transition, so it cuts (or the camera eases) again. |
|
|
168
175
|
|
|
169
176
|
### Save and open
|
|
170
177
|
|
|
@@ -199,8 +206,38 @@ holding), a shot's camera can play one as it arrives and one while it holds:
|
|
|
199
206
|
Exports to Flair tag each camera change with `<move>@<shot>`; with the provider set the camera
|
|
200
207
|
is sampled from the move, and a cut stays a jump.
|
|
201
208
|
|
|
209
|
+
### Shot layers and transitions
|
|
210
|
+
|
|
211
|
+
With a provider that draws pixels (Flair: gradients, light, film looks, lower thirds, image
|
|
212
|
+
filters, 30 transitions), a shot can show effects as layers over and under its artwork, as
|
|
213
|
+
Flair's scenes do:
|
|
214
|
+
|
|
215
|
+
1. `search_effects` with `use` `generator` (backgrounds), `filter` (changes a picture),
|
|
216
|
+
`overlay` or `title`, then `add_shot_layer`. A filter needs a `subject` (`{ image }`,
|
|
217
|
+
`{ svg }`, `{ text }`); a generator or title draws its own picture and takes none.
|
|
218
|
+
2. `role` places it: `background` under the artwork, `subject` over it, `overlay` over
|
|
219
|
+
everything. A layer with a `rect` sits on the artwork and moves with the camera; without one
|
|
220
|
+
it fills the screen. `until: { shots: 2 }` keeps a background going under the next shot too;
|
|
221
|
+
`fade` softens its start and end.
|
|
222
|
+
3. `search_effects` with `use` `transition`, then `set_shot_transition` on the shot it leads
|
|
223
|
+
into (never the first). With no camera move in, the camera cuts and the transition does the
|
|
224
|
+
move; with one (`set_shot_camera_move`), both play together.
|
|
225
|
+
4. `render_animation_frame` to look (it waits for the provider's pictures), and
|
|
226
|
+
`check_animation`: `layer-effect-unknown`, `layer-effect-values`, `layer-slot-empty` (a
|
|
227
|
+
`{ slot }` subject nobody filled), `transition-unknown`, `transition-first-shot`,
|
|
228
|
+
`layer-not-drawn` and `transition-not-played` (no provider: effect layers are left out and
|
|
229
|
+
transitions crossfade).
|
|
230
|
+
|
|
231
|
+
Layers are pixels: the Flair `SvgMotion` export leaves them out. Use them for backgrounds, looks
|
|
232
|
+
and titles, and keep what should animate node by node in the artwork.
|
|
233
|
+
|
|
202
234
|
## Pitfalls
|
|
203
235
|
|
|
236
|
+
- **A transition belongs to the shot it leads into.** Setting one on the first shot is refused;
|
|
237
|
+
moving a shot with a transition to the front makes it a `transition-first-shot` note.
|
|
238
|
+
- **Layer effects are not motion effects.** A transition or a camera move is refused as a layer,
|
|
239
|
+
and a motion effect (`fade-in`) goes on nodes with `apply_effect`.
|
|
240
|
+
|
|
204
241
|
- **One move per role per shot.** Whip pans and cuts jump half way: put them between framings
|
|
205
242
|
that differ, and do not follow a cut with a long glide into the same framing.
|
|
206
243
|
|