You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
983 B
40 lines
983 B
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;
|