@pixerate/editor 0.231.0 → 0.232.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/index.cjs +25 -25
- package/dist/animation-editor/index.js +1 -1
- package/dist/canvas/index.cjs +7 -7
- package/dist/canvas/index.js +1 -1
- package/dist/{chunk-OPSK22DL.cjs → chunk-2K5TELHV.cjs} +19 -2
- package/dist/{chunk-CSM5T6SE.js → chunk-6QLTUGMO.js} +1 -1
- package/dist/{chunk-5T3H7CGG.cjs → chunk-A653N65Q.cjs} +7 -7
- package/dist/{chunk-SBPGIZQN.js → chunk-MUSZYMBX.js} +1 -1
- package/dist/{chunk-TCZ2J7PR.js → chunk-PQYDJ2AV.js} +18 -1
- package/dist/{chunk-C73U5UI3.cjs → chunk-RG4O6K2A.cjs} +14 -14
- 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 +537 -74
- package/dist/effects/index.d.cts +1 -0
- package/dist/effects/index.d.ts +1 -0
- package/dist/effects/index.js +466 -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/controller.d.cts +12 -0
- package/dist/image-editor/controller.d.ts +12 -0
- package/dist/image-editor/index.cjs +189 -144
- package/dist/image-editor/index.js +48 -3
- package/dist/paint-editor/index.cjs +7 -7
- package/dist/paint-editor/index.js +2 -2
- package/dist/vector/index.cjs +6 -6
- package/dist/vector/index.js +1 -1
- package/dist/video-editor/index.cjs +329 -329
- package/dist/video-editor/index.js +3 -3
- package/package.json +1 -1
- package/skills/pixerate-animation-editor/SKILL.md +37 -0
package/dist/effects/errors.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SchemaValidationError } from '../tools/schema.js';
|
|
2
|
-
export type EffectErrorCode = 'unknown_effect' | 'invalid_values' | 'unsupported' | 'disposed' | 'no_provider';
|
|
2
|
+
export type EffectErrorCode = 'unknown_effect' | 'invalid_values' | 'unsupported' | 'disposed' | 'no_provider' | 'unknown_template';
|
|
3
3
|
export declare const EFFECT_ERROR_CODES: readonly EffectErrorCode[];
|
|
4
4
|
/**
|
|
5
5
|
* Base of every effects error. Check `code` (or use `isEffectError`) rather than `instanceof`
|
|
@@ -14,6 +14,11 @@ export declare class EffectError extends Error {
|
|
|
14
14
|
export declare class UnknownEffectError extends EffectError {
|
|
15
15
|
constructor(effectId: string, providerName?: string);
|
|
16
16
|
}
|
|
17
|
+
/** No sequence template has this id. */
|
|
18
|
+
export declare class UnknownTemplateError extends EffectError {
|
|
19
|
+
readonly templateId: string;
|
|
20
|
+
constructor(templateId: string, providerName?: string);
|
|
21
|
+
}
|
|
17
22
|
/** Control values do not match the effect's control schema (unknown control, wrong type, out of range). */
|
|
18
23
|
export declare class EffectControlError extends EffectError {
|
|
19
24
|
readonly details: readonly SchemaValidationError[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The fake provider's sequence templates (`createFakeEffectProvider({ templates: true })`), built
|
|
3
|
+
* only from its own effects, and a small reference of how a provider fills one: `{{slot}}` in any
|
|
4
|
+
* string (a whole-string placeholder takes the typed value), and `{ slot }` subjects.
|
|
5
|
+
*
|
|
6
|
+
* - `fake.title-sequence`: a gradient behind a title with a lower-third bar, then a crossfade to
|
|
7
|
+
* a second shot with a caption. Text, colour and number slots.
|
|
8
|
+
* - `fake.picture-reveal`: a tinted picture, then a crossfade to the picture with a logo over it.
|
|
9
|
+
* An image slot with a default and one without (left for the host when not given).
|
|
10
|
+
*/
|
|
11
|
+
import type { EffectTemplateDescription, EffectTemplateOptions, EffectTemplateResult, EffectTemplateSearchOptions, EffectTemplateSummary, EffectTemplateValues } from './types.cjs';
|
|
12
|
+
/** The template methods of the fake provider. */
|
|
13
|
+
export declare function fakeTemplateMethods(): {
|
|
14
|
+
listTemplates: (options?: EffectTemplateSearchOptions) => EffectTemplateSummary[];
|
|
15
|
+
describeTemplate: (id: string) => EffectTemplateDescription;
|
|
16
|
+
instantiateTemplate(id: string, values?: EffectTemplateValues, options?: EffectTemplateOptions): EffectTemplateResult;
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The fake provider's sequence templates (`createFakeEffectProvider({ templates: true })`), built
|
|
3
|
+
* only from its own effects, and a small reference of how a provider fills one: `{{slot}}` in any
|
|
4
|
+
* string (a whole-string placeholder takes the typed value), and `{ slot }` subjects.
|
|
5
|
+
*
|
|
6
|
+
* - `fake.title-sequence`: a gradient behind a title with a lower-third bar, then a crossfade to
|
|
7
|
+
* a second shot with a caption. Text, colour and number slots.
|
|
8
|
+
* - `fake.picture-reveal`: a tinted picture, then a crossfade to the picture with a logo over it.
|
|
9
|
+
* An image slot with a default and one without (left for the host when not given).
|
|
10
|
+
*/
|
|
11
|
+
import type { EffectTemplateDescription, EffectTemplateOptions, EffectTemplateResult, EffectTemplateSearchOptions, EffectTemplateSummary, EffectTemplateValues } from './types.js';
|
|
12
|
+
/** The template methods of the fake provider. */
|
|
13
|
+
export declare function fakeTemplateMethods(): {
|
|
14
|
+
listTemplates: (options?: EffectTemplateSearchOptions) => EffectTemplateSummary[];
|
|
15
|
+
describeTemplate: (id: string) => EffectTemplateDescription;
|
|
16
|
+
instantiateTemplate(id: string, values?: EffectTemplateValues, options?: EffectTemplateOptions): EffectTemplateResult;
|
|
17
|
+
};
|
package/dist/effects/fake.d.cts
CHANGED
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
*
|
|
13
13
|
* With `camera: true` it also has camera moves (no pixels): `glide` and `whip` (transitions; the
|
|
14
14
|
* whip cuts halfway) and `drift` (a hold that zooms in slowly).
|
|
15
|
+
*
|
|
16
|
+
* With `templates: true` it also has two sequence templates (see `fake-templates.ts`):
|
|
17
|
+
* `fake.title-sequence` and `fake.picture-reveal`.
|
|
15
18
|
*/
|
|
16
19
|
import type { EffectProvider, EffectProviderCapabilities, EffectRenderRequest } from './types.cjs';
|
|
17
20
|
export interface FakeEffectProviderOptions {
|
|
@@ -23,6 +26,8 @@ export interface FakeEffectProviderOptions {
|
|
|
23
26
|
authoring?: boolean;
|
|
24
27
|
/** Adds the camera moves and `cameraView` / `sampleCameraMove` (default false). */
|
|
25
28
|
camera?: boolean;
|
|
29
|
+
/** Adds two sequence templates and `listTemplates` / `describeTemplate` / `instantiateTemplate` (default false). */
|
|
30
|
+
templates?: boolean;
|
|
26
31
|
}
|
|
27
|
-
/** A deterministic CPU effects provider with seven effects, and
|
|
32
|
+
/** A deterministic CPU effects provider with seven effects, and camera moves and templates on request (see the module comment). */
|
|
28
33
|
export declare function createFakeEffectProvider(options?: FakeEffectProviderOptions): EffectProvider;
|
package/dist/effects/fake.d.ts
CHANGED
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
*
|
|
13
13
|
* With `camera: true` it also has camera moves (no pixels): `glide` and `whip` (transitions; the
|
|
14
14
|
* whip cuts halfway) and `drift` (a hold that zooms in slowly).
|
|
15
|
+
*
|
|
16
|
+
* With `templates: true` it also has two sequence templates (see `fake-templates.ts`):
|
|
17
|
+
* `fake.title-sequence` and `fake.picture-reveal`.
|
|
15
18
|
*/
|
|
16
19
|
import type { EffectProvider, EffectProviderCapabilities, EffectRenderRequest } from './types.js';
|
|
17
20
|
export interface FakeEffectProviderOptions {
|
|
@@ -23,6 +26,8 @@ export interface FakeEffectProviderOptions {
|
|
|
23
26
|
authoring?: boolean;
|
|
24
27
|
/** Adds the camera moves and `cameraView` / `sampleCameraMove` (default false). */
|
|
25
28
|
camera?: boolean;
|
|
29
|
+
/** Adds two sequence templates and `listTemplates` / `describeTemplate` / `instantiateTemplate` (default false). */
|
|
30
|
+
templates?: boolean;
|
|
26
31
|
}
|
|
27
|
-
/** A deterministic CPU effects provider with seven effects, and
|
|
32
|
+
/** A deterministic CPU effects provider with seven effects, and camera moves and templates on request (see the module comment). */
|
|
28
33
|
export declare function createFakeEffectProvider(options?: FakeEffectProviderOptions): EffectProvider;
|