-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathClip.js
718 lines (686 loc) · 27.3 KB
/
Clip.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
var _Asset = _interopRequireDefault(require("./Asset"));
var _ClipLength = _interopRequireDefault(require("./ClipLength"));
var _ClipOpacity = _interopRequireDefault(require("./ClipOpacity"));
var _ClipStart = _interopRequireDefault(require("./ClipStart"));
var _Offset = _interopRequireDefault(require("./Offset"));
var _Transformation = _interopRequireDefault(require("./Transformation"));
var _Transition = _interopRequireDefault(require("./Transition"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
* Shotstack
* Official Node SDK for the Shotstack Cloud Video Editing API
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
/**
* The Clip model module.
* @module model/Clip
* @version 0.2.9
*/
var Clip = /*#__PURE__*/function () {
/**
* Constructs a new <code>Clip</code>.
* A clip is a container for a specific type of asset, i.e. a title, image, video, audio or html. You use a Clip to define when an asset will display on the timeline, how long it will play for and transitions, filters and effects to apply to it.
* @alias module:model/Clip
* @param asset {module:model/Asset}
* @param start {module:model/ClipStart}
* @param length {module:model/ClipLength}
*/
function Clip(asset, start, length) {
_classCallCheck(this, Clip);
Clip.initialize(this, asset, start, length);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
return _createClass(Clip, [{
key: "getAsset",
value:
/**
* @return {module:model/Asset}
*/
function getAsset() {
return this.asset;
}
/**
* @param {module:model/Asset} asset
*/
}, {
key: "setAsset",
value: function setAsset(asset) {
this['asset'] = asset;
return this;
}
/**
* @return {module:model/ClipStart}
*/
}, {
key: "getStart",
value: function getStart() {
return this.start;
}
/**
* @param {module:model/ClipStart} start
*/
}, {
key: "setStart",
value: function setStart(start) {
this['start'] = start;
return this;
}
/**
* @return {module:model/ClipLength}
*/
}, {
key: "getLength",
value: function getLength() {
return this.length;
}
/**
* @param {module:model/ClipLength} length
*/
}, {
key: "setLength",
value: function setLength(length) {
this['length'] = length;
return this;
}
/**
* Returns Set how the asset should be scaled to fit the viewport using one of the following options: <ul> <li>`crop` <b>(default)</b> - scale the asset to fill the viewport while maintaining the aspect ratio. The asset will be cropped if it exceeds the bounds of the viewport.</li> <li>`cover` - stretch the asset to fill the viewport without maintaining the aspect ratio.</li> <li>`contain` - fit the entire asset within the viewport while maintaining the original aspect ratio.</li> <li>`none` - preserves the original asset dimensions and does not apply any scaling.</li> </ul>
* @return {module:model/Clip.FitEnum}
*/
}, {
key: "getFit",
value: function getFit() {
return this.fit;
}
/**
* Sets Set how the asset should be scaled to fit the viewport using one of the following options: <ul> <li>`crop` <b>(default)</b> - scale the asset to fill the viewport while maintaining the aspect ratio. The asset will be cropped if it exceeds the bounds of the viewport.</li> <li>`cover` - stretch the asset to fill the viewport without maintaining the aspect ratio.</li> <li>`contain` - fit the entire asset within the viewport while maintaining the original aspect ratio.</li> <li>`none` - preserves the original asset dimensions and does not apply any scaling.</li> </ul>
* @param {module:model/Clip.FitEnum} fit Set how the asset should be scaled to fit the viewport using one of the following options: <ul> <li>`crop` <b>(default)</b> - scale the asset to fill the viewport while maintaining the aspect ratio. The asset will be cropped if it exceeds the bounds of the viewport.</li> <li>`cover` - stretch the asset to fill the viewport without maintaining the aspect ratio.</li> <li>`contain` - fit the entire asset within the viewport while maintaining the original aspect ratio.</li> <li>`none` - preserves the original asset dimensions and does not apply any scaling.</li> </ul>
*/
}, {
key: "setFit",
value: function setFit(fit) {
this['fit'] = fit;
return this;
}
/**
* Returns Scale the asset to a fraction of the viewport size - i.e. setting the scale to 0.5 will scale asset to half the size of the viewport. This is useful for picture-in-picture video and scaling images such as logos and watermarks.
* @return {Number}
*/
}, {
key: "getScale",
value: function getScale() {
return this.scale;
}
/**
* Sets Scale the asset to a fraction of the viewport size - i.e. setting the scale to 0.5 will scale asset to half the size of the viewport. This is useful for picture-in-picture video and scaling images such as logos and watermarks.
* @param {Number} scale Scale the asset to a fraction of the viewport size - i.e. setting the scale to 0.5 will scale asset to half the size of the viewport. This is useful for picture-in-picture video and scaling images such as logos and watermarks.
*/
}, {
key: "setScale",
value: function setScale(scale) {
this['scale'] = scale;
return this;
}
/**
* Returns Place the asset in one of nine predefined positions of the viewport. This is most effective for when the asset is scaled and you want to position the element to a specific position. <ul> <li>`top` - top (center)</li> <li>`topRight` - top right</li> <li>`right` - right (center)</li> <li>`bottomRight` - bottom right</li> <li>`bottom` - bottom (center)</li> <li>`bottomLeft` - bottom left</li> <li>`left` - left (center)</li> <li>`topLeft` - top left</li> <li>`center` - center</li> </ul>
* @return {module:model/Clip.PositionEnum}
*/
}, {
key: "getPosition",
value: function getPosition() {
return this.position;
}
/**
* Sets Place the asset in one of nine predefined positions of the viewport. This is most effective for when the asset is scaled and you want to position the element to a specific position. <ul> <li>`top` - top (center)</li> <li>`topRight` - top right</li> <li>`right` - right (center)</li> <li>`bottomRight` - bottom right</li> <li>`bottom` - bottom (center)</li> <li>`bottomLeft` - bottom left</li> <li>`left` - left (center)</li> <li>`topLeft` - top left</li> <li>`center` - center</li> </ul>
* @param {module:model/Clip.PositionEnum} position Place the asset in one of nine predefined positions of the viewport. This is most effective for when the asset is scaled and you want to position the element to a specific position. <ul> <li>`top` - top (center)</li> <li>`topRight` - top right</li> <li>`right` - right (center)</li> <li>`bottomRight` - bottom right</li> <li>`bottom` - bottom (center)</li> <li>`bottomLeft` - bottom left</li> <li>`left` - left (center)</li> <li>`topLeft` - top left</li> <li>`center` - center</li> </ul>
*/
}, {
key: "setPosition",
value: function setPosition(position) {
this['position'] = position;
return this;
}
/**
* @return {module:model/Offset}
*/
}, {
key: "getOffset",
value: function getOffset() {
return this.offset;
}
/**
* @param {module:model/Offset} offset
*/
}, {
key: "setOffset",
value: function setOffset(offset) {
this['offset'] = offset;
return this;
}
/**
* @return {module:model/Transition}
*/
}, {
key: "getTransition",
value: function getTransition() {
return this.transition;
}
/**
* @param {module:model/Transition} transition
*/
}, {
key: "setTransition",
value: function setTransition(transition) {
this['transition'] = transition;
return this;
}
/**
* Returns A motion effect to apply to the Clip. <ul> <li>`zoomIn` - slow zoom in</li> <li>`zoomOut` - slow zoom out</li> <li>`slideLeft` - slow slide (pan) left</li> <li>`slideRight` - slow slide (pan) right</li> <li>`slideUp` - slow slide (pan) up</li> <li>`slideDown` - slow slide (pan) down</li> </ul> The motion effect speed can also be controlled by appending `Fast` or `Slow` to the effect, e.g. `zoomInFast` or `slideRightSlow`.
* @return {module:model/Clip.EffectEnum}
*/
}, {
key: "getEffect",
value: function getEffect() {
return this.effect;
}
/**
* Sets A motion effect to apply to the Clip. <ul> <li>`zoomIn` - slow zoom in</li> <li>`zoomOut` - slow zoom out</li> <li>`slideLeft` - slow slide (pan) left</li> <li>`slideRight` - slow slide (pan) right</li> <li>`slideUp` - slow slide (pan) up</li> <li>`slideDown` - slow slide (pan) down</li> </ul> The motion effect speed can also be controlled by appending `Fast` or `Slow` to the effect, e.g. `zoomInFast` or `slideRightSlow`.
* @param {module:model/Clip.EffectEnum} effect A motion effect to apply to the Clip. <ul> <li>`zoomIn` - slow zoom in</li> <li>`zoomOut` - slow zoom out</li> <li>`slideLeft` - slow slide (pan) left</li> <li>`slideRight` - slow slide (pan) right</li> <li>`slideUp` - slow slide (pan) up</li> <li>`slideDown` - slow slide (pan) down</li> </ul> The motion effect speed can also be controlled by appending `Fast` or `Slow` to the effect, e.g. `zoomInFast` or `slideRightSlow`.
*/
}, {
key: "setEffect",
value: function setEffect(effect) {
this['effect'] = effect;
return this;
}
/**
* Returns A filter effect to apply to the Clip. <ul> <li>`blur` - blur the scene</li> <li>`boost` - boost contrast and saturation</li> <li>`contrast` - increase contrast</li> <li>`darken` - darken the scene</li> <li>`greyscale` - remove colour</li> <li>`lighten` - lighten the scene</li> <li>`muted` - reduce saturation and contrast</li> <li>`negative` - negative colors</li> </ul>
* @return {module:model/Clip.FilterEnum}
*/
}, {
key: "getFilter",
value: function getFilter() {
return this.filter;
}
/**
* Sets A filter effect to apply to the Clip. <ul> <li>`blur` - blur the scene</li> <li>`boost` - boost contrast and saturation</li> <li>`contrast` - increase contrast</li> <li>`darken` - darken the scene</li> <li>`greyscale` - remove colour</li> <li>`lighten` - lighten the scene</li> <li>`muted` - reduce saturation and contrast</li> <li>`negative` - negative colors</li> </ul>
* @param {module:model/Clip.FilterEnum} filter A filter effect to apply to the Clip. <ul> <li>`blur` - blur the scene</li> <li>`boost` - boost contrast and saturation</li> <li>`contrast` - increase contrast</li> <li>`darken` - darken the scene</li> <li>`greyscale` - remove colour</li> <li>`lighten` - lighten the scene</li> <li>`muted` - reduce saturation and contrast</li> <li>`negative` - negative colors</li> </ul>
*/
}, {
key: "setFilter",
value: function setFilter(filter) {
this['filter'] = filter;
return this;
}
/**
* @return {module:model/ClipOpacity}
*/
}, {
key: "getOpacity",
value: function getOpacity() {
return this.opacity;
}
/**
* @param {module:model/ClipOpacity} opacity
*/
}, {
key: "setOpacity",
value: function setOpacity(opacity) {
this['opacity'] = opacity;
return this;
}
/**
* @return {module:model/Transformation}
*/
}, {
key: "getTransform",
value: function getTransform() {
return this.transform;
}
/**
* @param {module:model/Transformation} transform
*/
}, {
key: "setTransform",
value: function setTransform(transform) {
this['transform'] = transform;
return this;
}
}], [{
key: "initialize",
value: function initialize(obj, asset, start, length) {
obj['asset'] = asset;
obj['start'] = start;
obj['length'] = length;
}
/**
* Constructs a <code>Clip</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/Clip} obj Optional instance to populate.
* @return {module:model/Clip} The populated <code>Clip</code> instance.
*/
}, {
key: "constructFromObject",
value: function constructFromObject(data, obj) {
if (data) {
obj = obj || new Clip();
if (data.hasOwnProperty('asset')) {
obj['asset'] = _Asset["default"].constructFromObject(data['asset']);
}
if (data.hasOwnProperty('start')) {
obj['start'] = _ClipStart["default"].constructFromObject(data['start']);
}
if (data.hasOwnProperty('length')) {
obj['length'] = _ClipLength["default"].constructFromObject(data['length']);
}
if (data.hasOwnProperty('fit')) {
obj['fit'] = _ApiClient["default"].convertToType(data['fit'], 'String');
}
if (data.hasOwnProperty('scale')) {
obj['scale'] = _ApiClient["default"].convertToType(data['scale'], 'Number');
}
if (data.hasOwnProperty('position')) {
obj['position'] = _ApiClient["default"].convertToType(data['position'], 'String');
}
if (data.hasOwnProperty('offset')) {
obj['offset'] = _Offset["default"].constructFromObject(data['offset']);
}
if (data.hasOwnProperty('transition')) {
obj['transition'] = _Transition["default"].constructFromObject(data['transition']);
}
if (data.hasOwnProperty('effect')) {
obj['effect'] = _ApiClient["default"].convertToType(data['effect'], 'String');
}
if (data.hasOwnProperty('filter')) {
obj['filter'] = _ApiClient["default"].convertToType(data['filter'], 'String');
}
if (data.hasOwnProperty('opacity')) {
obj['opacity'] = _ClipOpacity["default"].constructFromObject(data['opacity']);
}
if (data.hasOwnProperty('transform')) {
obj['transform'] = _Transformation["default"].constructFromObject(data['transform']);
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>Clip</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Clip</code>.
*/
}, {
key: "validateJSON",
value: function validateJSON(data) {
// check to make sure all required properties are present in the JSON string
var _iterator = _createForOfIteratorHelper(Clip.RequiredProperties),
_step;
try {
for (_iterator.s(); !(_step = _iterator.n()).done;) {
var property = _step.value;
if (!data.hasOwnProperty(property)) {
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
}
}
// validate the optional field `asset`
} catch (err) {
_iterator.e(err);
} finally {
_iterator.f();
}
if (data['asset']) {
// data not null
_Asset["default"].validateJSON(data['asset']);
}
// validate the optional field `start`
if (data['start']) {
// data not null
_ClipStart["default"].validateJSON(data['start']);
}
// validate the optional field `length`
if (data['length']) {
// data not null
_ClipLength["default"].validateJSON(data['length']);
}
// ensure the json data is a string
if (data['fit'] && !(typeof data['fit'] === 'string' || data['fit'] instanceof String)) {
throw new Error("Expected the field `fit` to be a primitive type in the JSON string but got " + data['fit']);
}
// ensure the json data is a string
if (data['position'] && !(typeof data['position'] === 'string' || data['position'] instanceof String)) {
throw new Error("Expected the field `position` to be a primitive type in the JSON string but got " + data['position']);
}
// validate the optional field `offset`
if (data['offset']) {
// data not null
_Offset["default"].validateJSON(data['offset']);
}
// validate the optional field `transition`
if (data['transition']) {
// data not null
_Transition["default"].validateJSON(data['transition']);
}
// ensure the json data is a string
if (data['effect'] && !(typeof data['effect'] === 'string' || data['effect'] instanceof String)) {
throw new Error("Expected the field `effect` to be a primitive type in the JSON string but got " + data['effect']);
}
// ensure the json data is a string
if (data['filter'] && !(typeof data['filter'] === 'string' || data['filter'] instanceof String)) {
throw new Error("Expected the field `filter` to be a primitive type in the JSON string but got " + data['filter']);
}
// validate the optional field `opacity`
if (data['opacity']) {
// data not null
_ClipOpacity["default"].validateJSON(data['opacity']);
}
// validate the optional field `transform`
if (data['transform']) {
// data not null
_Transformation["default"].validateJSON(data['transform']);
}
return true;
}
}]);
}();
Clip.RequiredProperties = ["asset", "start", "length"];
/**
* @member {module:model/Asset} asset
*/
Clip.prototype['asset'] = undefined;
/**
* @member {module:model/ClipStart} start
*/
Clip.prototype['start'] = undefined;
/**
* @member {module:model/ClipLength} length
*/
Clip.prototype['length'] = undefined;
/**
* Set how the asset should be scaled to fit the viewport using one of the following options: <ul> <li>`crop` <b>(default)</b> - scale the asset to fill the viewport while maintaining the aspect ratio. The asset will be cropped if it exceeds the bounds of the viewport.</li> <li>`cover` - stretch the asset to fill the viewport without maintaining the aspect ratio.</li> <li>`contain` - fit the entire asset within the viewport while maintaining the original aspect ratio.</li> <li>`none` - preserves the original asset dimensions and does not apply any scaling.</li> </ul>
* @member {module:model/Clip.FitEnum} fit
*/
Clip.prototype['fit'] = undefined;
/**
* Scale the asset to a fraction of the viewport size - i.e. setting the scale to 0.5 will scale asset to half the size of the viewport. This is useful for picture-in-picture video and scaling images such as logos and watermarks.
* @member {Number} scale
*/
Clip.prototype['scale'] = undefined;
/**
* Place the asset in one of nine predefined positions of the viewport. This is most effective for when the asset is scaled and you want to position the element to a specific position. <ul> <li>`top` - top (center)</li> <li>`topRight` - top right</li> <li>`right` - right (center)</li> <li>`bottomRight` - bottom right</li> <li>`bottom` - bottom (center)</li> <li>`bottomLeft` - bottom left</li> <li>`left` - left (center)</li> <li>`topLeft` - top left</li> <li>`center` - center</li> </ul>
* @member {module:model/Clip.PositionEnum} position
*/
Clip.prototype['position'] = undefined;
/**
* @member {module:model/Offset} offset
*/
Clip.prototype['offset'] = undefined;
/**
* @member {module:model/Transition} transition
*/
Clip.prototype['transition'] = undefined;
/**
* A motion effect to apply to the Clip. <ul> <li>`zoomIn` - slow zoom in</li> <li>`zoomOut` - slow zoom out</li> <li>`slideLeft` - slow slide (pan) left</li> <li>`slideRight` - slow slide (pan) right</li> <li>`slideUp` - slow slide (pan) up</li> <li>`slideDown` - slow slide (pan) down</li> </ul> The motion effect speed can also be controlled by appending `Fast` or `Slow` to the effect, e.g. `zoomInFast` or `slideRightSlow`.
* @member {module:model/Clip.EffectEnum} effect
*/
Clip.prototype['effect'] = undefined;
/**
* A filter effect to apply to the Clip. <ul> <li>`blur` - blur the scene</li> <li>`boost` - boost contrast and saturation</li> <li>`contrast` - increase contrast</li> <li>`darken` - darken the scene</li> <li>`greyscale` - remove colour</li> <li>`lighten` - lighten the scene</li> <li>`muted` - reduce saturation and contrast</li> <li>`negative` - negative colors</li> </ul>
* @member {module:model/Clip.FilterEnum} filter
*/
Clip.prototype['filter'] = undefined;
/**
* @member {module:model/ClipOpacity} opacity
*/
Clip.prototype['opacity'] = undefined;
/**
* @member {module:model/Transformation} transform
*/
Clip.prototype['transform'] = undefined;
/**
* Allowed values for the <code>fit</code> property.
* @enum {String}
* @readonly
*/
Clip['FitEnum'] = {
/**
* value: "cover"
* @const
*/
"cover": "cover",
/**
* value: "contain"
* @const
*/
"contain": "contain",
/**
* value: "crop"
* @const
*/
"crop": "crop",
/**
* value: "none"
* @const
*/
"none": "none"
};
/**
* Allowed values for the <code>position</code> property.
* @enum {String}
* @readonly
*/
Clip['PositionEnum'] = {
/**
* value: "top"
* @const
*/
"top": "top",
/**
* value: "topRight"
* @const
*/
"topRight": "topRight",
/**
* value: "right"
* @const
*/
"right": "right",
/**
* value: "bottomRight"
* @const
*/
"bottomRight": "bottomRight",
/**
* value: "bottom"
* @const
*/
"bottom": "bottom",
/**
* value: "bottomLeft"
* @const
*/
"bottomLeft": "bottomLeft",
/**
* value: "left"
* @const
*/
"left": "left",
/**
* value: "topLeft"
* @const
*/
"topLeft": "topLeft",
/**
* value: "center"
* @const
*/
"center": "center"
};
/**
* Allowed values for the <code>effect</code> property.
* @enum {String}
* @readonly
*/
Clip['EffectEnum'] = {
/**
* value: "zoomIn"
* @const
*/
"zoomIn": "zoomIn",
/**
* value: "zoomInSlow"
* @const
*/
"zoomInSlow": "zoomInSlow",
/**
* value: "zoomInFast"
* @const
*/
"zoomInFast": "zoomInFast",
/**
* value: "zoomOut"
* @const
*/
"zoomOut": "zoomOut",
/**
* value: "zoomOutSlow"
* @const
*/
"zoomOutSlow": "zoomOutSlow",
/**
* value: "zoomOutFast"
* @const
*/
"zoomOutFast": "zoomOutFast",
/**
* value: "slideLeft"
* @const
*/
"slideLeft": "slideLeft",
/**
* value: "slideLeftSlow"
* @const
*/
"slideLeftSlow": "slideLeftSlow",
/**
* value: "slideLeftFast"
* @const
*/
"slideLeftFast": "slideLeftFast",
/**
* value: "slideRight"
* @const
*/
"slideRight": "slideRight",
/**
* value: "slideRightSlow"
* @const
*/
"slideRightSlow": "slideRightSlow",
/**
* value: "slideRightFast"
* @const
*/
"slideRightFast": "slideRightFast",
/**
* value: "slideUp"
* @const
*/
"slideUp": "slideUp",
/**
* value: "slideUpSlow"
* @const
*/
"slideUpSlow": "slideUpSlow",
/**
* value: "slideUpFast"
* @const
*/
"slideUpFast": "slideUpFast",
/**
* value: "slideDown"
* @const
*/
"slideDown": "slideDown",
/**
* value: "slideDownSlow"
* @const
*/
"slideDownSlow": "slideDownSlow",
/**
* value: "slideDownFast"
* @const
*/
"slideDownFast": "slideDownFast"
};
/**
* Allowed values for the <code>filter</code> property.
* @enum {String}
* @readonly
*/
Clip['FilterEnum'] = {
/**
* value: "blur"
* @const
*/
"blur": "blur",
/**
* value: "boost"
* @const
*/
"boost": "boost",
/**
* value: "contrast"
* @const
*/
"contrast": "contrast",
/**
* value: "darken"
* @const
*/
"darken": "darken",
/**
* value: "greyscale"
* @const
*/
"greyscale": "greyscale",
/**
* value: "lighten"
* @const
*/
"lighten": "lighten",
/**
* value: "muted"
* @const
*/
"muted": "muted",
/**
* value: "negative"
* @const
*/
"negative": "negative"
};
var _default = exports["default"] = Clip;