first commit
This commit is contained in:
39
node_modules/lottie-web/player/js/elements/NullElement.js
generated
vendored
Normal file
39
node_modules/lottie-web/player/js/elements/NullElement.js
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
import {
|
||||
extendPrototype,
|
||||
} from '../utils/functionExtensions';
|
||||
import BaseElement from './BaseElement';
|
||||
import TransformElement from './helpers/TransformElement';
|
||||
import HierarchyElement from './helpers/HierarchyElement';
|
||||
import FrameElement from './helpers/FrameElement';
|
||||
|
||||
function NullElement(data, globalData, comp) {
|
||||
this.initFrame();
|
||||
this.initBaseData(data, globalData, comp);
|
||||
this.initFrame();
|
||||
this.initTransform(data, globalData, comp);
|
||||
this.initHierarchy();
|
||||
}
|
||||
|
||||
NullElement.prototype.prepareFrame = function (num) {
|
||||
this.prepareProperties(num, true);
|
||||
};
|
||||
|
||||
NullElement.prototype.renderFrame = function () {
|
||||
};
|
||||
|
||||
NullElement.prototype.getBaseElement = function () {
|
||||
return null;
|
||||
};
|
||||
|
||||
NullElement.prototype.destroy = function () {
|
||||
};
|
||||
|
||||
NullElement.prototype.sourceRectAtTime = function () {
|
||||
};
|
||||
|
||||
NullElement.prototype.hide = function () {
|
||||
};
|
||||
|
||||
extendPrototype([BaseElement, TransformElement, HierarchyElement, FrameElement], NullElement);
|
||||
|
||||
export default NullElement;
|
Reference in New Issue
Block a user