nativescript-ar
Version:
NativeScript Augmented Reality plugin. ARKit on iOS and (with the help of Sceneform) ARCore on Android.
23 lines (22 loc) • 825 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var arcommon_1 = require("./arcommon");
var ARGroup = (function (_super) {
__extends(ARGroup, _super);
function ARGroup() {
return _super !== null && _super.apply(this, arguments) || this;
}
ARGroup.create = function (options, fragment) {
var _this = this;
return new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {
var node;
return __generator(this, function (_a) {
node = arcommon_1.ARCommonNode.createNode(options, fragment);
resolve(new ARGroup(options, node));
return [2];
});
}); });
};
return ARGroup;
}(arcommon_1.ARCommonNode));
exports.ARGroup = ARGroup;