@shapediver/sdk.sdtf-v1
Version:
Official sdTF SDK for TypeScript
24 lines • 827 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SdtfPartialAccessor = void 0;
const SdtfBasePartialComponent_1 = require("./SdtfBasePartialComponent");
class SdtfPartialAccessor extends SdtfBasePartialComponent_1.SdtfBasePartialComponent {
constructor() {
super(...arguments);
this.additionalProperties = {};
}
toJson() {
const json = Object.assign({}, this.additionalProperties);
if (this.bufferView !== undefined)
json.bufferView = this.bufferView;
else
delete json.bufferView;
if (this.id !== undefined)
json.id = this.id;
else
delete json.id;
return json;
}
}
exports.SdtfPartialAccessor = SdtfPartialAccessor;
//# sourceMappingURL=SdtfPartialAccessor.js.map