etro 0.10.0 → 0.10.1
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/CHANGELOG.md +6 -0
- package/CONTRIBUTING.md +2 -0
- package/README.md +9 -0
- package/dist/etro-cjs.js +1 -6
- package/dist/etro-iife.js +1 -6
- package/karma.conf.js +1 -1
- package/package.json +1 -1
- package/src/layer/audio.ts +0 -4
- package/src/movie/movie.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
7
7
|
|
|
8
|
+
## [0.10.1] - 2023-07-16
|
|
9
|
+
### Security
|
|
10
|
+
- Bump engine.io and socket.io.
|
|
11
|
+
- Bump socket.io-parser from 4.2.1 to 4.2.3.
|
|
12
|
+
|
|
8
13
|
## [0.10.0] - 2023-04-18
|
|
9
14
|
### Added
|
|
10
15
|
- `Movie#stream()` to stream the movie to a `MediaStream`.
|
|
@@ -275,6 +280,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
275
280
|
- Gaussian blur
|
|
276
281
|
- Transform
|
|
277
282
|
|
|
283
|
+
[0.10.1]: https://github.com/etro-js/etro/compare/v0.10.0...v0.10.1
|
|
278
284
|
[0.10.0]: https://github.com/etro-js/etro/compare/v0.9.1...v0.10.0
|
|
279
285
|
[0.9.1]: https://github.com/etro-js/etro/compare/v0.9.0...v0.9.1
|
|
280
286
|
[0.9.0]: https://github.com/etro-js/etro/compare/v0.8.5...v0.9.0
|
package/CONTRIBUTING.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Contributing
|
|
2
2
|
|
|
3
|
+
> If you would like to update the docs, please see [the docs repo](https://github.com/etro-js/etro-js.github.io).
|
|
4
|
+
|
|
3
5
|
## Introduction
|
|
4
6
|
|
|
5
7
|
Thank you for considering contributing to Etro! There are many ways you can contribute to Etro, like creating issues for features or bugs, improving the docs or wiki, or writing the code for the library. This page covers how to make changes to the repository files (either code or jsdocs).
|
package/README.md
CHANGED
|
@@ -42,6 +42,9 @@ movie.record({ frameRate: 24 }) // or just `play` if you don't need to save it
|
|
|
42
42
|
The blob could then be downloaded as a video file or displayed using a `<video>`
|
|
43
43
|
element.
|
|
44
44
|
|
|
45
|
+
See the [documentation](https://etrojs.dev/docs/category/layers) for a list of
|
|
46
|
+
all built-in layers.
|
|
47
|
+
|
|
45
48
|
## Effects
|
|
46
49
|
|
|
47
50
|
Effects can transform the output of a layer or movie:
|
|
@@ -50,6 +53,9 @@ var layer = new etro.layer.Video({ startTime: 0, source: videoElement })
|
|
|
50
53
|
.addEffect(new etro.effect.Brightness({ brightness: +100) }))
|
|
51
54
|
```
|
|
52
55
|
|
|
56
|
+
See the [documentation](https://etrojs.dev/docs/category/effects) for a list of
|
|
57
|
+
all built-in effects.
|
|
58
|
+
|
|
53
59
|
## Dynamic Properties
|
|
54
60
|
|
|
55
61
|
Most properties also support keyframes and functions:
|
|
@@ -64,6 +70,9 @@ layer.effects[0].brightness = new etro.KeyFrame(
|
|
|
64
70
|
layer.effects[0].brightness = () => 100 * Math.random() - 50
|
|
65
71
|
```
|
|
66
72
|
|
|
73
|
+
See the [documentation](https://etrojs.dev/docs/reference/dynamic-properties)
|
|
74
|
+
for more info.
|
|
75
|
+
|
|
67
76
|
## Using in Node
|
|
68
77
|
|
|
69
78
|
To use Etro in Node, see the [wrapper](https://github.com/etro-js/etro-node):
|
package/dist/etro-cjs.js
CHANGED
|
@@ -1054,17 +1054,12 @@ var Audio = /** @class */ (function (_super) {
|
|
|
1054
1054
|
* Creates an audio layer
|
|
1055
1055
|
*/
|
|
1056
1056
|
function Audio(options) {
|
|
1057
|
-
var _this = this;
|
|
1058
1057
|
if (typeof options.source === 'string') {
|
|
1059
1058
|
var audio = document.createElement('audio');
|
|
1060
1059
|
audio.src = options.source;
|
|
1061
1060
|
options.source = audio;
|
|
1062
1061
|
}
|
|
1063
|
-
|
|
1064
|
-
if (_this.duration === undefined) {
|
|
1065
|
-
_this.duration = (_this).source.duration - _this.sourceStartTime;
|
|
1066
|
-
}
|
|
1067
|
-
return _this;
|
|
1062
|
+
return _super.call(this, options) || this;
|
|
1068
1063
|
}
|
|
1069
1064
|
/**
|
|
1070
1065
|
* @deprecated See {@link https://github.com/etro-js/etro/issues/131}
|
package/dist/etro-iife.js
CHANGED
|
@@ -1055,17 +1055,12 @@ var etro = (function () {
|
|
|
1055
1055
|
* Creates an audio layer
|
|
1056
1056
|
*/
|
|
1057
1057
|
function Audio(options) {
|
|
1058
|
-
var _this = this;
|
|
1059
1058
|
if (typeof options.source === 'string') {
|
|
1060
1059
|
var audio = document.createElement('audio');
|
|
1061
1060
|
audio.src = options.source;
|
|
1062
1061
|
options.source = audio;
|
|
1063
1062
|
}
|
|
1064
|
-
|
|
1065
|
-
if (_this.duration === undefined) {
|
|
1066
|
-
_this.duration = (_this).source.duration - _this.sourceStartTime;
|
|
1067
|
-
}
|
|
1068
|
-
return _this;
|
|
1063
|
+
return _super.call(this, options) || this;
|
|
1069
1064
|
}
|
|
1070
1065
|
/**
|
|
1071
1066
|
* @deprecated See {@link https://github.com/etro-js/etro/issues/131}
|
package/karma.conf.js
CHANGED
package/package.json
CHANGED
package/src/layer/audio.ts
CHANGED