ami-cjs.js
Version:
<p align="center"> <img src="https://cloud.githubusercontent.com/assets/214063/23213764/78ade038-f90c-11e6-8208-4fcade5f3832.png" width="60%"> </p>
72 lines (63 loc) • 2.1 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
/**
* @module models/voxel
*/
var ModelsVoxel = function () {
function ModelsVoxel() {
_classCallCheck(this, ModelsVoxel);
this._id = -1;
this._worldCoordinates = null;
this._dataCoordinates = null;
this._screenCoordinates = null;
this._value = null;
}
_createClass(ModelsVoxel, [{
key: "worldCoordinates",
set: function set(worldCoordinates) {
this._worldCoordinates = worldCoordinates;
},
get: function get() {
return this._worldCoordinates;
}
}, {
key: "dataCoordinates",
set: function set(dataCoordinates) {
this._dataCoordinates = dataCoordinates;
},
get: function get() {
return this._dataCoordinates;
}
}, {
key: "screenCoordinates",
set: function set(screenCoordinates) {
this._screenCoordinates = screenCoordinates;
},
get: function get() {
return this._screenCoordinates;
}
}, {
key: "value",
set: function set(value) {
this._value = value;
},
get: function get() {
return this._value;
}
}, {
key: "id",
set: function set(id) {
this._id = id;
},
get: function get() {
return this._id;
}
}]);
return ModelsVoxel;
}();
exports.default = ModelsVoxel;
module.exports = exports["default"];