remotion
Version:
Make videos programmatically
80 lines (79 loc) • 1.9 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.sequenceSchemaDefaultLayoutNone = exports.sequenceSchema = exports.hiddenField = exports.sequenceStyleSchema = exports.sequencePremountSchema = exports.sequenceVisualStyleSchema = void 0;
exports.sequenceVisualStyleSchema = {
'style.translate': {
type: 'translate',
step: 1,
default: '0px 0px',
description: 'Offset',
},
'style.scale': {
type: 'number',
min: 0.05,
max: 100,
step: 0.01,
default: 1,
description: 'Scale',
},
'style.rotate': {
type: 'rotation',
step: 1,
default: '0deg',
description: 'Rotation',
},
'style.opacity': {
type: 'number',
min: 0,
max: 1,
step: 0.01,
default: 1,
description: 'Opacity',
},
};
exports.sequencePremountSchema = {
premountFor: {
type: 'number',
default: 0,
description: 'Premount For',
min: 0,
step: 1,
},
postmountFor: {
type: 'hidden',
},
styleWhilePremounted: {
type: 'hidden',
},
styleWhilePostmounted: {
type: 'hidden',
},
};
exports.sequenceStyleSchema = {
...exports.sequenceVisualStyleSchema,
...exports.sequencePremountSchema,
};
exports.hiddenField = {
type: 'boolean',
default: false,
description: 'Hidden',
};
exports.sequenceSchema = {
hidden: exports.hiddenField,
layout: {
type: 'enum',
default: 'absolute-fill',
description: 'Layout',
variants: {
'absolute-fill': exports.sequenceStyleSchema,
none: {},
},
},
};
exports.sequenceSchemaDefaultLayoutNone = {
...exports.sequenceSchema,
layout: {
...exports.sequenceSchema.layout,
default: 'none',
},
};