@awayjs/stage
Version:
Stage for AwayJS
39 lines (38 loc) • 1.62 kB
JavaScript
import { __extends } from "tslib";
import { AttributesView } from './AttributesView';
var Short3Attributes = /** @class */ (function (_super) {
__extends(Short3Attributes, _super);
function Short3Attributes(attributesBufferLength, unsigned) {
if (unsigned === void 0) { unsigned = true; }
return _super.call(this, unsigned ? Uint16Array : Int16Array, 3, attributesBufferLength, unsigned) || this;
}
Object.defineProperty(Short3Attributes.prototype, "assetType", {
/**
*
* @returns {string}
*/
get: function () {
return Short3Attributes.assetType;
},
enumerable: false,
configurable: true
});
Short3Attributes.prototype.set = function (values, offset) {
if (offset === void 0) { offset = 0; }
_super.prototype.set.call(this, values, offset);
};
Short3Attributes.prototype.get = function (count, offset) {
if (offset === void 0) { offset = 0; }
return _super.prototype.get.call(this, count, offset);
};
Short3Attributes.prototype._internalClone = function (attributesBuffer) {
return (this._cloneCache = new Short3Attributes(attributesBuffer, this._arrayClass == Uint16Array));
};
Short3Attributes.prototype.clone = function (attributesBuffer) {
if (attributesBuffer === void 0) { attributesBuffer = null; }
return _super.prototype.clone.call(this, attributesBuffer);
};
Short3Attributes.assetType = '[attributes Short3Attributes]';
return Short3Attributes;
}(AttributesView));
export { Short3Attributes };