v1.1.1
mizorewww/laya-mlxv1.1.1Oct 29, 2024by k9p5
Upgrading?
AI Summary
This release enhances the functionality of stacked tracks by allowing users to insert clips at specific indices and fixes a bug where splitting clips would incorrectly reorder the track.
Key Highlights
- Added `track.add(new Clip(), index)` method to insert clips at specific positions in stacked tracks
- Fixed a bug where splitting clips within stacked tracks would incorrectly reorder the track
- Includes a code example demonstrating the new insertion functionality
New Features
- Insert clips at specific indices in stacked tracks
Full Release Notes
- Implemented ability to insert clips into a stacked track at a given index e.g. `track.add(new Clip(), 2)`
- Ensured clips within stacked tracks can be split without the track being reordered
**Example**
```
const composition = new core.Compostion();
const track = composition.createTrack('base').stacked();
await track.add(new core.Clip({ name: 'foo' });
await track.add(new core.Clip({ name: 'bar' });
// now add a clip in between
await track.add(new core.Clip({ name: 'pong' }), 1);
console.log(track.clips[0].name); // foo
console.log(track.clips[1].name); // pong
console.log(track.clips[2].name); // bar
```Related Repositories
public-apis/public-apis★ 491,364
A collective list of free APIs
NousResearch/hermes-agent★ 256,190
The agent that grows with you
yt-dlp/yt-dlp★ 200,406
A feature-rich command-line audio/video downloader
microsoft/markitdown★ 191,640
Python tool for converting files and office documents to Markdown.
Significant-Gravitas/AutoGPT★ 187,712
AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.