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

28 lines
611 B
JavaScript
Raw Permalink Normal View History

2018-04-09 09:35:04 +02:00
/**
2019-10-06 21:11:18 +02:00
* R3.API.Controls.D3.Editor
* @param apiComponent
2018-04-09 09:35:04 +02:00
* @constructor
*/
R3.API.Controls.D3.Editor = function(
2019-10-06 21:11:18 +02:00
apiComponent
2018-04-09 09:35:04 +02:00
) {
2019-07-24 08:08:02 +02:00
R3.API.Controls.D3.call(
this,
2019-10-06 21:11:18 +02:00
apiComponent
2019-07-24 08:08:02 +02:00
);
2018-04-09 09:35:04 +02:00
2019-10-06 21:11:18 +02:00
if (R3.Utils.UndefinedOrNull(apiComponent.raycaster)) {
apiComponent.raycaster = new R3.D3.API.Raycaster(
{
parent : this
}
);
2018-04-09 09:35:04 +02:00
}
2019-10-06 21:11:18 +02:00
this.raycaster = apiComponent.raycaster;
2018-04-09 09:35:04 +02:00
};
2019-07-18 21:55:04 +02:00
R3.API.Controls.D3.Editor.prototype = Object.create(R3.API.Controls.D3.prototype);
2018-04-09 09:35:04 +02:00
R3.API.Controls.D3.Editor.prototype.constructor = R3.API.Controls.D3.Editor;