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