@rendley/sdk 1.11.3 → 1.11.5
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/LICENSE +48 -48
- package/README.md +31 -31
- package/dist/Engine.d.ts +14 -13
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/modules/clip/Clip.d.ts +24 -24
- package/dist/modules/clip/clips/audio/AudioClip.d.ts +6 -6
- package/dist/modules/clip/clips/custom/CustomClip.d.ts +4 -4
- package/dist/modules/clip/clips/htmlText/HtmlTextClip.d.ts +10 -10
- package/dist/modules/clip/clips/lottie/LottieClip.d.ts +6 -6
- package/dist/modules/clip/clips/shape/ShapeClip.d.ts +4 -4
- package/dist/modules/clip/clips/shape/ShapeStyle.d.ts +5 -5
- package/dist/modules/clip/clips/text/TextClip.d.ts +6 -6
- package/dist/modules/clip/clips/text/TextStyle.d.ts +9 -9
- package/dist/modules/clip/clips/video/VideoClip.d.ts +7 -6
- package/dist/modules/effect/EffectBase.d.ts +2 -0
- package/dist/modules/effect/built-in-effects/BuiltInAdjustmentEffect.d.ts +16 -0
- package/dist/modules/effect/built-in-effects/BuiltInAdvancedBloomEffect.d.ts +14 -0
- package/dist/modules/effect/built-in-effects/BuiltInAsciiEffect.d.ts +9 -0
- package/dist/modules/effect/built-in-effects/BuiltInBevelEffect.d.ts +14 -0
- package/dist/modules/effect/built-in-effects/BuiltInBloomEffect.d.ts +12 -0
- package/dist/modules/effect/built-in-effects/BuiltInBulgePinchEffect.d.ts +13 -0
- package/dist/modules/effect/built-in-effects/BuiltInCRTEffect.d.ts +20 -0
- package/dist/modules/effect/built-in-effects/BuiltInColorOverlayEffect.d.ts +10 -0
- package/dist/modules/effect/built-in-effects/BuiltInColorReplaceEffect.d.ts +11 -0
- package/dist/modules/effect/built-in-effects/BuiltInCrossHatchEffect.d.ts +8 -0
- package/dist/modules/effect/built-in-effects/BuiltInDotEffect.d.ts +11 -0
- package/dist/modules/effect/built-in-effects/BuiltInDropShadowEffect.d.ts +15 -0
- package/dist/modules/effect/built-in-effects/BuiltInEmbossEffect.d.ts +9 -0
- package/dist/modules/effect/built-in-effects/BuiltInGlowEffect.d.ts +15 -0
- package/dist/modules/effect/built-in-effects/BuiltInGodrayEffect.d.ts +17 -0
- package/dist/modules/effect/built-in-effects/BuiltInHSLAdjustmentEffect.d.ts +13 -0
- package/dist/modules/effect/built-in-effects/BuiltInMotionBlurEffect.d.ts +11 -0
- package/dist/modules/effect/built-in-effects/BuiltInOldFilmEffect.d.ts +18 -0
- package/dist/modules/effect/built-in-effects/BuiltInOutlineEffect.d.ts +13 -0
- package/dist/modules/effect/built-in-effects/BuiltInPixelateEffect.d.ts +9 -0
- package/dist/modules/effect/built-in-effects/BuiltInRGBSplitEffect.d.ts +11 -0
- package/dist/modules/effect/built-in-effects/BuiltInRadialBlurEffect.d.ts +13 -0
- package/dist/modules/effect/built-in-effects/BuiltInReflectionEffect.d.ts +16 -0
- package/dist/modules/effect/built-in-effects/BuiltInShockwaveEffect.d.ts +17 -0
- package/dist/modules/effect/built-in-effects/BuiltInTiltShiftEffect.d.ts +12 -0
- package/dist/modules/effect/built-in-effects/BuiltInTwistEffect.d.ts +11 -0
- package/dist/modules/effect/built-in-effects/BuiltInZoomBlurEffect.d.ts +12 -0
- package/dist/modules/library/BuiltInEffectDefines.d.ts +27 -1
- package/dist/modules/library/EffectData.d.ts +3 -3
- package/dist/modules/library/Library.d.ts +41 -41
- package/dist/modules/library/Subtitles.d.ts +7 -7
- package/dist/modules/library/TransitionData.d.ts +3 -3
- package/dist/modules/library/types/Property.types.d.ts +4 -0
- package/dist/modules/renderer/Renderer.d.ts +1 -0
- package/dist/modules/settings/Settings.d.ts +23 -0
- package/dist/modules/subtitles/SubtitleManager.d.ts +18 -18
- package/dist/modules/undo/UndoManager.types.d.ts +20 -0
- package/dist/utils/animation/animation.d.ts +1 -1
- package/dist/utils/math/wrapValue.d.ts +1 -0
- package/package.json +83 -83
package/LICENSE
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
Proprietary License Agreement
|
|
2
|
-
|
|
3
|
-
1. Grant of License
|
|
4
|
-
Onix Technologies ("Licensor") hereby grants you ("Licensee") a non-exclusive, non-transferable, limited license to use the Rendley SDK ("Software") solely for the purpose of developing and integrating applications in accordance with the terms of this Agreement.
|
|
5
|
-
|
|
6
|
-
2. Restrictions
|
|
7
|
-
|
|
8
|
-
Licensee shall not:
|
|
9
|
-
|
|
10
|
-
1. Modify, adapt, translate, or create derivative works of the Software without prior written consent from Licensor.
|
|
11
|
-
2. Reverse engineer, decompile, disassemble, or otherwise attempt to discover the source code of the Software.
|
|
12
|
-
3. Redistribute, sublicense, rent, lease, or lend the Software to any third party.
|
|
13
|
-
4. Use the Software for any purpose that is illegal or prohibited by law.
|
|
14
|
-
|
|
15
|
-
5. Intellectual Property Rights
|
|
16
|
-
|
|
17
|
-
The Software is protected by copyright laws and international copyright treaties, as well as other intellectual property laws and treaties. All title, ownership rights, and intellectual property rights in and to the Software and all copies thereof are owned by Licensor.
|
|
18
|
-
|
|
19
|
-
4. Fees and Payment
|
|
20
|
-
Licensee agrees to pay the license fees and any other charges incurred in connection with the use of the Software as specified in the order form or purchase agreement. All payments are non-refundable.
|
|
21
|
-
|
|
22
|
-
5. Support and Updates
|
|
23
|
-
Licensor may, at its sole discretion, provide updates, enhancements, or modifications to the Software. Licensor is not obligated to provide any support services, updates, or enhancements unless a separate support agreement is entered into.
|
|
24
|
-
|
|
25
|
-
6. Termination
|
|
26
|
-
This Agreement is effective until terminated. Licensee may terminate this Agreement at any time by destroying all copies of the Software in their possession. Licensor may terminate this Agreement if Licensee breaches any of the terms and conditions. Upon termination, Licensee must destroy all copies of the Software.
|
|
27
|
-
|
|
28
|
-
7. Disclaimer of Warranties
|
|
29
|
-
THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. LICENSOR DOES NOT WARRANT THAT THE SOFTWARE WILL MEET LICENSEE'S REQUIREMENTS OR THAT THE OPERATION OF THE SOFTWARE WILL BE UNINTERRUPTED OR ERROR-FREE.
|
|
30
|
-
|
|
31
|
-
8. Limitation of Liability
|
|
32
|
-
IN NO EVENT SHALL LICENSOR BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES, OR DAMAGES FOR LOSS OF PROFITS, REVENUE, DATA, OR USE, INCURRED BY LICENSEE OR ANY THIRD PARTY, WHETHER IN AN ACTION IN CONTRACT OR TORT, ARISING FROM LICENSEE'S ACCESS TO, OR USE OF, THE SOFTWARE.
|
|
33
|
-
|
|
34
|
-
9. Governing Law
|
|
35
|
-
This Agreement shall be governed by and construed in accordance with the laws of Moldova, without regard to its conflict of laws principles.
|
|
36
|
-
|
|
37
|
-
10. Entire Agreement
|
|
38
|
-
This Agreement constitutes the entire agreement between the parties with respect to the use of the Software and supersedes all prior or contemporaneous understandings regarding such subject matter. Any modifications to this Agreement must be in writing and signed by both parties.
|
|
39
|
-
|
|
40
|
-
11. Severability
|
|
41
|
-
If any provision of this Agreement is held to be invalid or unenforceable, the remaining provisions will continue in full force and effect.
|
|
42
|
-
|
|
43
|
-
12. No Waiver
|
|
44
|
-
The failure of either party to enforce any right or provision of this Agreement will not be deemed a waiver of such right or provision.
|
|
45
|
-
|
|
46
|
-
Onix Technologies
|
|
47
|
-
Chisinau, MD-2072
|
|
48
|
-
Moldova
|
|
1
|
+
Proprietary License Agreement
|
|
2
|
+
|
|
3
|
+
1. Grant of License
|
|
4
|
+
Onix Technologies ("Licensor") hereby grants you ("Licensee") a non-exclusive, non-transferable, limited license to use the Rendley SDK ("Software") solely for the purpose of developing and integrating applications in accordance with the terms of this Agreement.
|
|
5
|
+
|
|
6
|
+
2. Restrictions
|
|
7
|
+
|
|
8
|
+
Licensee shall not:
|
|
9
|
+
|
|
10
|
+
1. Modify, adapt, translate, or create derivative works of the Software without prior written consent from Licensor.
|
|
11
|
+
2. Reverse engineer, decompile, disassemble, or otherwise attempt to discover the source code of the Software.
|
|
12
|
+
3. Redistribute, sublicense, rent, lease, or lend the Software to any third party.
|
|
13
|
+
4. Use the Software for any purpose that is illegal or prohibited by law.
|
|
14
|
+
|
|
15
|
+
5. Intellectual Property Rights
|
|
16
|
+
|
|
17
|
+
The Software is protected by copyright laws and international copyright treaties, as well as other intellectual property laws and treaties. All title, ownership rights, and intellectual property rights in and to the Software and all copies thereof are owned by Licensor.
|
|
18
|
+
|
|
19
|
+
4. Fees and Payment
|
|
20
|
+
Licensee agrees to pay the license fees and any other charges incurred in connection with the use of the Software as specified in the order form or purchase agreement. All payments are non-refundable.
|
|
21
|
+
|
|
22
|
+
5. Support and Updates
|
|
23
|
+
Licensor may, at its sole discretion, provide updates, enhancements, or modifications to the Software. Licensor is not obligated to provide any support services, updates, or enhancements unless a separate support agreement is entered into.
|
|
24
|
+
|
|
25
|
+
6. Termination
|
|
26
|
+
This Agreement is effective until terminated. Licensee may terminate this Agreement at any time by destroying all copies of the Software in their possession. Licensor may terminate this Agreement if Licensee breaches any of the terms and conditions. Upon termination, Licensee must destroy all copies of the Software.
|
|
27
|
+
|
|
28
|
+
7. Disclaimer of Warranties
|
|
29
|
+
THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. LICENSOR DOES NOT WARRANT THAT THE SOFTWARE WILL MEET LICENSEE'S REQUIREMENTS OR THAT THE OPERATION OF THE SOFTWARE WILL BE UNINTERRUPTED OR ERROR-FREE.
|
|
30
|
+
|
|
31
|
+
8. Limitation of Liability
|
|
32
|
+
IN NO EVENT SHALL LICENSOR BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES, OR DAMAGES FOR LOSS OF PROFITS, REVENUE, DATA, OR USE, INCURRED BY LICENSEE OR ANY THIRD PARTY, WHETHER IN AN ACTION IN CONTRACT OR TORT, ARISING FROM LICENSEE'S ACCESS TO, OR USE OF, THE SOFTWARE.
|
|
33
|
+
|
|
34
|
+
9. Governing Law
|
|
35
|
+
This Agreement shall be governed by and construed in accordance with the laws of Moldova, without regard to its conflict of laws principles.
|
|
36
|
+
|
|
37
|
+
10. Entire Agreement
|
|
38
|
+
This Agreement constitutes the entire agreement between the parties with respect to the use of the Software and supersedes all prior or contemporaneous understandings regarding such subject matter. Any modifications to this Agreement must be in writing and signed by both parties.
|
|
39
|
+
|
|
40
|
+
11. Severability
|
|
41
|
+
If any provision of this Agreement is held to be invalid or unenforceable, the remaining provisions will continue in full force and effect.
|
|
42
|
+
|
|
43
|
+
12. No Waiver
|
|
44
|
+
The failure of either party to enforce any right or provision of this Agreement will not be deemed a waiver of such right or provision.
|
|
45
|
+
|
|
46
|
+
Onix Technologies
|
|
47
|
+
Chisinau, MD-2072
|
|
48
|
+
Moldova
|
package/README.md
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
# Rendley SDK
|
|
2
|
-
|
|
3
|
-
Rendley SDK takes the complexity out of video editing by providing a comprehensive set of APIs that handle composition, effects, filters, playback, rendering, splitting, trimming, and more.
|
|
4
|
-
|
|
5
|
-
To achieve maximum performance, we leverage WebGL for rendering and WebCodecs API for hardware-accelerated encoding and decoding. For browsers that don't support [WebCodecs API](https://caniuse.com/?search=webcodecs), we seamlessly fallback to a browser-based version of FFmpeg.
|
|
6
|
-
|
|
7
|
-
## Installation
|
|
8
|
-
|
|
9
|
-
### Using the NPM Registry
|
|
10
|
-
|
|
11
|
-
The installation process is straightforward. Simply run one of the followin
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
npm install @rendley/sdk
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
or
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
yarn add @rendley/sdk
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
The package includes type definitions, so you don't need to worry about setting those up separately.
|
|
24
|
-
|
|
25
|
-
## Getting Started
|
|
26
|
-
|
|
27
|
-
Check out the [documentation](https://docs.rendley.com) to learn more about how to get started creating compositions and building your own video editing software.
|
|
28
|
-
|
|
29
|
-
## Templates
|
|
30
|
-
|
|
31
|
-
To further simplify the process, we have [pre-built interfaces](https://docs.rendley.com/video-editor) that allow you to embed our video editing capabilities onto your website with just a few lines of code.
|
|
1
|
+
# Rendley SDK
|
|
2
|
+
|
|
3
|
+
Rendley SDK takes the complexity out of video editing by providing a comprehensive set of APIs that handle composition, effects, filters, playback, rendering, splitting, trimming, and more.
|
|
4
|
+
|
|
5
|
+
To achieve maximum performance, we leverage WebGL for rendering and WebCodecs API for hardware-accelerated encoding and decoding. For browsers that don't support [WebCodecs API](https://caniuse.com/?search=webcodecs), we seamlessly fallback to a browser-based version of FFmpeg.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
### Using the NPM Registry
|
|
10
|
+
|
|
11
|
+
The installation process is straightforward. Simply run one of the followin
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install @rendley/sdk
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
or
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
yarn add @rendley/sdk
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
The package includes type definitions, so you don't need to worry about setting those up separately.
|
|
24
|
+
|
|
25
|
+
## Getting Started
|
|
26
|
+
|
|
27
|
+
Check out the [documentation](https://docs.rendley.com) to learn more about how to get started creating compositions and building your own video editing software.
|
|
28
|
+
|
|
29
|
+
## Templates
|
|
30
|
+
|
|
31
|
+
To further simplify the process, we have [pre-built interfaces](https://docs.rendley.com/video-editor) that allow you to embed our video editing capabilities onto your website with just a few lines of code.
|
package/dist/Engine.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export interface EngineOptions {
|
|
|
41
41
|
storages?: StorageProviderBase[];
|
|
42
42
|
transcoder?: ITranscodeProvider;
|
|
43
43
|
ffmpeg?: FFmpegOptions;
|
|
44
|
+
enableUndoRedo?: boolean;
|
|
44
45
|
onSetupLibrary?: (data: LibrarySetupData) => Promise<void>;
|
|
45
46
|
}
|
|
46
47
|
type CustomClipConstructor<T extends CustomClip = CustomClip> = {
|
|
@@ -150,21 +151,15 @@ export declare class Engine {
|
|
|
150
151
|
language: string;
|
|
151
152
|
textBlocks: {
|
|
152
153
|
text: string;
|
|
153
|
-
time: number;
|
|
154
154
|
duration: number;
|
|
155
|
+
time: number;
|
|
155
156
|
}[];
|
|
156
157
|
}[];
|
|
157
|
-
|
|
158
|
-
name: string;
|
|
159
|
-
id: string;
|
|
160
|
-
provider: string;
|
|
161
|
-
lutUrl: string;
|
|
162
|
-
}[];
|
|
163
|
-
effects: {
|
|
158
|
+
transitions: {
|
|
164
159
|
name: string;
|
|
165
160
|
id: string;
|
|
166
161
|
provider: string;
|
|
167
|
-
|
|
162
|
+
transitionSrc: string;
|
|
168
163
|
properties: {
|
|
169
164
|
type: import("./modules/library").PropertyDescriptionTypeEnum;
|
|
170
165
|
name: string;
|
|
@@ -180,7 +175,13 @@ export declare class Engine {
|
|
|
180
175
|
mipmap?: import("./modules/library").InputTextureMipmapMode | undefined;
|
|
181
176
|
}[] | undefined;
|
|
182
177
|
}[];
|
|
183
|
-
|
|
178
|
+
filters: {
|
|
179
|
+
name: string;
|
|
180
|
+
id: string;
|
|
181
|
+
provider: string;
|
|
182
|
+
lutUrl: string;
|
|
183
|
+
}[];
|
|
184
|
+
effects: {
|
|
184
185
|
name: string;
|
|
185
186
|
id: string;
|
|
186
187
|
provider: string;
|
|
@@ -191,7 +192,7 @@ export declare class Engine {
|
|
|
191
192
|
label?: string | undefined;
|
|
192
193
|
description?: string | undefined;
|
|
193
194
|
}[];
|
|
194
|
-
|
|
195
|
+
fragmentSrc: string;
|
|
195
196
|
inputTextures?: {
|
|
196
197
|
name: string;
|
|
197
198
|
url: string;
|
|
@@ -222,7 +223,7 @@ export declare class Engine {
|
|
|
222
223
|
color: string;
|
|
223
224
|
strokeColor: string;
|
|
224
225
|
fontSize: number;
|
|
225
|
-
fontWeight: "
|
|
226
|
+
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
226
227
|
fontFamily: string;
|
|
227
228
|
fontStyle: "normal" | "italic" | "oblique";
|
|
228
229
|
backgroundColor: string;
|
|
@@ -238,7 +239,7 @@ export declare class Engine {
|
|
|
238
239
|
color: string;
|
|
239
240
|
strokeColor: string;
|
|
240
241
|
fontSize: number;
|
|
241
|
-
fontWeight: "
|
|
242
|
+
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
242
243
|
fontFamily: string;
|
|
243
244
|
fontStyle: "normal" | "italic" | "oblique";
|
|
244
245
|
backgroundColor: string;
|