5
ClipEditor
Une instance de ClipEditor est une instance de Editor qui a pour option d'afficher la durée d'un clip.
Objective
- Responder
- Editor
- ClipEditor
- Editor
- function ClipEditor(model, view, inspectors, panel = false, timing = false) {
- Editor.call(this, model, view, inspectors, panel);
- this._timing = timing;
- }
- ClipEditor.prototype = Object.create(Editor.prototype);
- Object.defineProperty(ClipEditor.prototype, 'constructor', { value: ClipEditor, enumerable: false, writable: true });
- ClipEditor.prototype.modelSet = function(sender) {
- Editor.prototype.modelSet.call(this, sender);
- if (this._timing)
- this._timing.widget.innerText = this._view.duration;
- };
- ClipEditor.prototype.modelValueChanged = function(sender, prop, val) {
- Editor.prototype.modelValueChanged.call(this, sender, prop, val);
- if (this._timing)
- this._timing.widget.innerText = this._view.duration;
- };
Commentaires