r3-legacy/src/r3-api-drawRange.js

26 lines
548 B
JavaScript
Raw Normal View History

2019-10-06 21:11:18 +02:00
/**
* R3.API.DrawRange
* @param apiComponent
* @constructor
*/
R3.API.DrawRange = function(
apiComponent
) {
__API_COMPONENT__;
if (R3.Utils.UndefinedOrNull(apiComponent.start)) {
apiComponent.start = 0;
}
this.start = apiComponent.start;
if (R3.Utils.UndefinedOrNull(apiComponent.count)) {
apiComponent.count = Infinity;
}
this.count = apiComponent.count;
};
R3.API.DrawRange.prototype = Object.create(R3.API.Component.prototype);
R3.API.DrawRange.prototype.constructor = R3.API.DrawRange;