4.1.6 • Published 2 months ago

@airlookjs/svelte-sequence-editor v4.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Svelte Sequence Editor

UI widget and logic for editing timed sequences in recursively nested structures of layers and blocks. Aimed at simple video and media editing in the browser.

NPM Version

semantic-release: angular

CI

Documentation

See airlookjs.github.io/svelte-sequence-editor/ for additional examples and documentation.

Installation

$ npm install @airlookjs/svelte-sequence-editor

Usage

import { createSequence, Sequence } from '@airlookjs/svelte-sequence-editor';

const sequenceTemplate = [
    {
		key: 'speak',
		blocks: [
			{
				key: 'audio',
                title: 'Audio',
				inTime: 0,
				outTime: 10000
			}
		]
	},
    {
		key: 'video',
		blocks: [
			{
				key: 'footage',
				title: 'Footage',
				inTime: 0,
				outTime: 10000
            },

		]
	},

]

const sequence = createSequence({
			initialData: ,
			duration: 30000,
			options: {
                // Will make the editor snap values to a frame rate of 30 fps
				roundingBase: () => {
					return (1 / 30) * 1000
				},
			    errorHandler: (error) => {
					console.error('sequence editor error', error);
				}
			}
		});

const { options, duration } = sequence;

Render the component with the sequence object as a prop.

<Sequence {options} {duration} {sequence} />

Styling with tailwind

svelte-sequence-editor uses tailwind for styling.

4.1.4

2 months ago

4.1.6

2 months ago

4.1.5

2 months ago

4.1.3

2 months ago

4.1.0

3 months ago

4.1.2

3 months ago

4.1.1

3 months ago

4.0.0

4 months ago

3.0.0

4 months ago

2.0.2

5 months ago

2.0.1

5 months ago

2.0.0

6 months ago

1.0.6

6 months ago

1.0.5

6 months ago