2018-04-09 09:35:04 +02:00
|
|
|
/**
|
|
|
|
* R3.D3.API.Geometry.Normal.Text
|
2019-10-06 21:11:18 +02:00
|
|
|
* @param apiComponent
|
|
|
|
*
|
|
|
|
* @property text
|
|
|
|
* @property font
|
|
|
|
* @property size
|
|
|
|
* @property height
|
|
|
|
* @property curveSegments
|
|
|
|
* @property bevelEnabled
|
|
|
|
* @property bevelThickness
|
|
|
|
* @property bevelSize
|
|
|
|
* @property bevelSegments
|
|
|
|
*
|
2018-04-09 09:35:04 +02:00
|
|
|
* @constructor
|
|
|
|
*/
|
|
|
|
R3.D3.API.Geometry.Normal.Text = function(
|
2019-10-06 21:11:18 +02:00
|
|
|
apiComponent
|
2018-04-09 09:35:04 +02:00
|
|
|
) {
|
|
|
|
|
2019-10-06 21:11:18 +02:00
|
|
|
__API_GEOMETRY_NORMAL__;
|
2018-04-09 09:35:04 +02:00
|
|
|
|
2019-10-06 21:11:18 +02:00
|
|
|
if (R3.Utils.UndefinedOrNull(apiComponent.text)) {
|
|
|
|
apiComponent.text = '-=<yb4f310';
|
2018-04-09 09:35:04 +02:00
|
|
|
}
|
2019-10-06 21:11:18 +02:00
|
|
|
this.text = apiComponent.text;
|
2018-04-09 09:35:04 +02:00
|
|
|
|
2019-10-06 21:11:18 +02:00
|
|
|
if (R3.Utils.UndefinedOrNull(apiComponent.font)) {
|
|
|
|
apiComponent.font = null;
|
2018-04-09 09:35:04 +02:00
|
|
|
}
|
2019-10-06 21:11:18 +02:00
|
|
|
this.font = apiComponent.font;
|
2018-04-09 09:35:04 +02:00
|
|
|
|
2019-10-06 21:11:18 +02:00
|
|
|
if (R3.Utils.UndefinedOrNull(apiComponent.size)) {
|
|
|
|
apiComponent.size = 10;
|
2018-04-09 09:35:04 +02:00
|
|
|
}
|
2019-10-06 21:11:18 +02:00
|
|
|
this.size = apiComponent.size;
|
2018-04-09 09:35:04 +02:00
|
|
|
|
2019-10-06 21:11:18 +02:00
|
|
|
if (R3.Utils.UndefinedOrNull(apiComponent.height)) {
|
|
|
|
apiComponent.height = 5;
|
2018-04-09 09:35:04 +02:00
|
|
|
}
|
2019-10-06 21:11:18 +02:00
|
|
|
this.height = apiComponent.height;
|
2018-04-09 09:35:04 +02:00
|
|
|
|
2019-10-06 21:11:18 +02:00
|
|
|
if (R3.Utils.UndefinedOrNull(apiComponent.curveSegments)) {
|
|
|
|
apiComponent.curveSegments = 12;
|
2018-04-09 09:35:04 +02:00
|
|
|
}
|
2019-10-06 21:11:18 +02:00
|
|
|
this.curveSegments = apiComponent.curveSegments;
|
2018-04-09 09:35:04 +02:00
|
|
|
|
2019-10-06 21:11:18 +02:00
|
|
|
if (R3.Utils.UndefinedOrNull(apiComponent.bevelEnabled)) {
|
|
|
|
apiComponent.bevelEnabled = false;
|
2018-04-09 09:35:04 +02:00
|
|
|
}
|
2019-10-06 21:11:18 +02:00
|
|
|
this.bevelEnabled = apiComponent.bevelEnabled;
|
2018-04-09 09:35:04 +02:00
|
|
|
|
2019-10-06 21:11:18 +02:00
|
|
|
if (R3.Utils.UndefinedOrNull(apiComponent.bevelThickness)) {
|
|
|
|
apiComponent.bevelThickness = 1;
|
2018-04-09 09:35:04 +02:00
|
|
|
}
|
2019-10-06 21:11:18 +02:00
|
|
|
this.bevelThickness = apiComponent.bevelThickness;
|
2018-04-09 09:35:04 +02:00
|
|
|
|
2019-10-06 21:11:18 +02:00
|
|
|
if (R3.Utils.UndefinedOrNull(apiComponent.bevelSize)) {
|
|
|
|
apiComponent.bevelSize = 8;
|
2018-04-09 09:35:04 +02:00
|
|
|
}
|
2019-10-06 21:11:18 +02:00
|
|
|
this.bevelSize = apiComponent.bevelSize;
|
2018-04-09 09:35:04 +02:00
|
|
|
|
2019-10-06 21:11:18 +02:00
|
|
|
if (R3.Utils.UndefinedOrNull(apiComponent.bevelSegments)) {
|
|
|
|
apiComponent.bevelSegments = 3;
|
2018-04-09 09:35:04 +02:00
|
|
|
}
|
2019-10-06 21:11:18 +02:00
|
|
|
this.bevelSegments = apiComponent.bevelSegments;
|
2018-04-09 09:35:04 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
R3.D3.API.Geometry.Normal.Text.prototype = Object.create(R3.D3.API.Geometry.Normal.prototype);
|
|
|
|
R3.D3.API.Geometry.Normal.Text.prototype.constructor = R3.D3.API.Geometry.Normal.Text;
|