v1.0.0-beta.9
diffusionstudio/corev1.0.0-beta.9Aug 19, 2024by k9p5
AI Summary
Optimizes the API for instantiating clips and improves the typing of the `set` method to reduce unnecessary update events.
Key Highlights
- Added properties to all Clip constructors for more efficient initialization
- Reduced update events from 2 to 1 during clip initialization
- Improved `set` method typing by defining dedicated interfaces
New Features
- Optimized Clip constructor properties
- Improved `set` method typing
Full Release Notes
- Added properties to all Clip constructors for a more efficient initialization
***v1.0.0-beta.8***
```typescript
const text = new core.TextClip('Bunny - Our Brave Hero')
.set({ position: 'center', stop: 90, stroke: { color: '#000000' } }); // will trigger 2 update events
```
***v1.0.0-beta.9***
```typescript
const text = new core.TextClip({
text: 'Bunny - Our Brave Hero',
position: 'center',
stop: 90,
stroke: { color: '#000000' },
}); // will trigger a single update event
```
- Improved `set` method typing by defining dedicated interfaces