r3-legacy/src/r3-project-d2.js

49 lines
894 B
JavaScript

/**
* R3.Project.D2
* @param apiComponent
* @constructor
*/
R3.Project.D2 = function(
apiComponent
) {
__RUNTIME_COMPONENT__;
this.linkedComponents.renderers = [R3.Renderer.D2];
R3.Project.call(
this,
true
);
};
R3.Project.D2.prototype = Object.create(R3.Project.prototype);
R3.Project.D2.prototype.constructor = R3.Project.D2;
R3.Project.D2.prototype.createInstance = function() {
this.instance = true;
__CREATE_INSTANCE__;
};
/**
* Updates the instance with the current state
*/
R3.Project.D2.prototype.updateInstance = function(property) {
if (property === 'renderers') {
console.log('todo: project renderer update');
return;
}
if (property === 'controls') {
console.log('todo: project controls update');
return;
}
R3.Project.prototype.updateInstance.call(this, property);
};