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