UNPKG

@shapediver/sdk.sdtf-v1

Version:
40 lines 1.41 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SdtfPartialBufferView = void 0; const SdtfBasePartialComponent_1 = require("./SdtfBasePartialComponent"); class SdtfPartialBufferView extends SdtfBasePartialComponent_1.SdtfBasePartialComponent { constructor() { super(...arguments); this.additionalProperties = {}; } toJson() { const json = Object.assign({}, this.additionalProperties); if (this.buffer !== undefined) json.buffer = this.buffer; else delete json.buffer; if (this.byteLength !== undefined) json.byteLength = this.byteLength; else delete json.byteLength; if (this.byteOffset !== undefined) json.byteOffset = this.byteOffset; else delete json.byteOffset; if (this.contentEncoding !== undefined) json.contentEncoding = this.contentEncoding; else delete json.contentEncoding; if (this.contentType !== undefined) json.contentType = this.contentType; else delete json.contentType; if (this.name !== undefined) json.name = this.name; else delete json.name; return json; } } exports.SdtfPartialBufferView = SdtfPartialBufferView; //# sourceMappingURL=SdtfPartialBufferView.js.map