UNPKG

@awayjs/stage

Version:
38 lines (37 loc) 1.49 kB
import { __extends } from "tslib"; import { AttributesView } from './AttributesView'; var Float2Attributes = /** @class */ (function (_super) { __extends(Float2Attributes, _super); function Float2Attributes(attributesBufferLength) { return _super.call(this, Float32Array, 2, attributesBufferLength) || this; } Object.defineProperty(Float2Attributes.prototype, "assetType", { /** * * @returns {string} */ get: function () { return Float2Attributes.assetType; }, enumerable: false, configurable: true }); Float2Attributes.prototype.set = function (values, offset) { if (offset === void 0) { offset = 0; } _super.prototype.set.call(this, values, offset); }; Float2Attributes.prototype.get = function (count, offset) { if (offset === void 0) { offset = 0; } return _super.prototype.get.call(this, count, offset); }; Float2Attributes.prototype._internalClone = function (attributesBuffer) { return (this._cloneCache = new Float2Attributes(attributesBuffer)); }; Float2Attributes.prototype.clone = function (attributesBuffer) { if (attributesBuffer === void 0) { attributesBuffer = null; } return _super.prototype.clone.call(this, attributesBuffer); }; Float2Attributes.assetType = '[attributes Float2Attributes]'; return Float2Attributes; }(AttributesView)); export { Float2Attributes };