UNPKG

@bezlepkin/nativescript-ar

Version:

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

12 lines (11 loc) 468 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ARText = void 0; const arcommongeometry_1 = require("./arcommongeometry"); class ARText extends arcommongeometry_1.ARCommonGeometryNode { static create(options, renderer) { const text = SCNText.textWithStringExtrusionDepth(options.text, options.depth || 0.0); return new ARText(options, SCNNode.nodeWithGeometry(text), renderer); } } exports.ARText = ARText;