UNPKG

nativescript-ar

Version:

NativeScript Augmented Reality plugin. ARKit on iOS and (with the help of Sceneform) ARCore on Android.

16 lines (15 loc) 619 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var arcommongeometry_1 = require("./arcommongeometry"); var ARText = (function (_super) { __extends(ARText, _super); function ARText() { return _super !== null && _super.apply(this, arguments) || this; } ARText.create = function (options, renderer) { var text = SCNText.textWithStringExtrusionDepth(options.text, options.depth || 0.0); return new ARText(options, SCNNode.nodeWithGeometry(text), renderer); }; return ARText; }(arcommongeometry_1.ARCommonGeometryNode)); exports.ARText = ARText;