r3-legacy/bak/r3-controls-d3-editor.js

49 lines
859 B
JavaScript
Raw Normal View History

2018-04-09 09:35:04 +02:00
/**
2019-10-06 21:11:18 +02:00
* R3.Controls.D3.Editor
2019-07-25 22:22:32 +02:00
* @param apiComponent
2018-04-09 09:35:04 +02:00
* @constructor
*/
2019-07-24 08:08:02 +02:00
R3.Controls.D3.Editor = function(
2019-07-25 22:22:32 +02:00
apiComponent
2018-04-09 09:35:04 +02:00
) {
2019-10-06 21:11:18 +02:00
__RUNTIME_COMPONENT__;
2018-04-09 09:35:04 +02:00
2019-10-06 21:11:18 +02:00
R3.Controls.D3.call(
2019-10-15 22:21:34 +02:00
this,
true
2018-04-09 09:35:04 +02:00
);
};
/**
* Inheritance
* @type {R3.Controls}
*/
R3.Controls.D3.Editor.prototype = Object.create(R3.Controls.D3.prototype);
R3.Controls.D3.Editor.prototype.constructor = R3.Controls.D3.Editor;
/**
* Create Instance
*/
R3.Controls.D3.Editor.prototype.createInstance = function() {
2019-10-15 22:21:34 +02:00
this.instance = this.graphics.EditorControls(this);
2018-04-09 09:35:04 +02:00
2019-10-06 21:11:18 +02:00
__CREATE_INSTANCE__;
2018-04-09 09:35:04 +02:00
};
/**
* Update Instance
*/
R3.Controls.D3.Editor.prototype.updateInstance = function(property) {
if (
2019-07-25 22:22:32 +02:00
property === 'raycaster'
2018-04-09 09:35:04 +02:00
) {
2019-07-25 22:22:32 +02:00
console.warn('todo : update raycaster');
2018-04-09 09:35:04 +02:00
}
2019-07-25 22:22:32 +02:00
R3.Controls.D3.prototype.updateInstance.call(this, property);
2018-04-09 09:35:04 +02:00
};