@@ -185,10 +185,10 @@ class AR extends ARBase {
185
185
186
186
this . sceneView = ARSCNView . new ( ) ;
187
187
this . sceneView . delegate = this . delegate = ARSCNViewDelegateImpl . createWithOwnerResultCallbackAndOptions (
188
- new WeakRef ( this ) ,
189
- data => {
190
- } ,
191
- { } ) ;
188
+ new WeakRef ( this ) ,
189
+ data => {
190
+ } ,
191
+ { } ) ;
192
192
193
193
// this.sceneView.session.delegate = ARSessionDelegateImpl.createWithOwnerResultCallbackAndOptions(
194
194
// new WeakRef(this),
@@ -297,12 +297,12 @@ class AR extends ARBase {
297
297
298
298
// Perform a hit test using the screen coordinates to see if the user pressed any 3D geometry.
299
299
const hitTestResults : NSArray < SCNHitTestResult > =
300
- this . sceneView . hitTestOptions (
301
- tapPoint ,
302
- < any > {
303
- SCNHitTestBoundingBoxOnlyKey : true ,
304
- SCNHitTestFirstFoundOnlyKey : true
305
- } ) ;
300
+ this . sceneView . hitTestOptions (
301
+ tapPoint ,
302
+ < any > {
303
+ SCNHitTestBoundingBoxOnlyKey : true ,
304
+ SCNHitTestFirstFoundOnlyKey : true
305
+ } ) ;
306
306
307
307
if ( hitTestResults . count === 0 ) {
308
308
return ;
@@ -334,12 +334,12 @@ class AR extends ARBase {
334
334
this . lastPositionForPanning = position ;
335
335
336
336
const hitTestResults : NSArray < SCNHitTestResult > =
337
- this . sceneView . hitTestOptions (
338
- position ,
339
- < any > {
340
- SCNHitTestBoundingBoxOnlyKey : true ,
341
- SCNHitTestFirstFoundOnlyKey : true
342
- } ) ;
337
+ this . sceneView . hitTestOptions (
338
+ position ,
339
+ < any > {
340
+ SCNHitTestBoundingBoxOnlyKey : true ,
341
+ SCNHitTestFirstFoundOnlyKey : true
342
+ } ) ;
343
343
344
344
if ( hitTestResults . count === 0 ) {
345
345
this . targetNodeForPanning = undefined ;
@@ -366,7 +366,7 @@ class AR extends ARBase {
366
366
let deltaX = ( position . x - this . lastPositionForPanning . x ) / 700 ;
367
367
let deltaY = ( position . y - this . lastPositionForPanning . y ) / 700 ;
368
368
// TODO when the object is to the RIGHT of the camera, x should 0, when it's to the left, z should be 0..
369
- this . targetNodeForPanning . localTranslateBy ( { x : deltaX , y : - deltaY , z : 0 } ) ;
369
+ this . targetNodeForPanning . localTranslateBy ( { x : deltaX , y : - deltaY , z : 0 } ) ;
370
370
this . lastPositionForPanning = position ;
371
371
372
372
} else if ( state === UIGestureRecognizerState . Ended ) {
@@ -385,12 +385,12 @@ class AR extends ARBase {
385
385
386
386
if ( state === UIGestureRecognizerState . Began ) {
387
387
const hitTestResults : NSArray < SCNHitTestResult > =
388
- this . sceneView . hitTestOptions (
389
- position ,
390
- < any > {
391
- SCNHitTestBoundingBoxOnlyKey : true ,
392
- SCNHitTestFirstFoundOnlyKey : true
393
- } ) ;
388
+ this . sceneView . hitTestOptions (
389
+ position ,
390
+ < any > {
391
+ SCNHitTestBoundingBoxOnlyKey : true ,
392
+ SCNHitTestFirstFoundOnlyKey : true
393
+ } ) ;
394
394
395
395
if ( hitTestResults . count === 0 ) {
396
396
this . targetNodeForRotating = undefined ;
@@ -539,7 +539,7 @@ class SceneTapHandlerImpl extends NSObject {
539
539
}
540
540
541
541
public static ObjCExposedMethods = {
542
- "tap" : { returns : interop . types . void , params : [ interop . types . id ] }
542
+ "tap" : { returns : interop . types . void , params : [ interop . types . id ] }
543
543
} ;
544
544
}
545
545
@@ -557,7 +557,7 @@ class SceneLongPressHandlerImpl extends NSObject {
557
557
}
558
558
559
559
public static ObjCExposedMethods = {
560
- "longpress" : { returns : interop . types . void , params : [ interop . types . id ] }
560
+ "longpress" : { returns : interop . types . void , params : [ interop . types . id ] }
561
561
} ;
562
562
}
563
563
@@ -575,7 +575,7 @@ class ScenePanHandlerImpl extends NSObject {
575
575
}
576
576
577
577
public static ObjCExposedMethods = {
578
- "pan" : { returns : interop . types . void , params : [ interop . types . id ] }
578
+ "pan" : { returns : interop . types . void , params : [ interop . types . id ] }
579
579
} ;
580
580
}
581
581
@@ -593,7 +593,7 @@ class SceneRotationHandlerImpl extends NSObject {
593
593
}
594
594
595
595
public static ObjCExposedMethods = {
596
- "rotate" : { returns : interop . types . void , params : [ interop . types . id ] }
596
+ "rotate" : { returns : interop . types . void , params : [ interop . types . id ] }
597
597
} ;
598
598
}
599
599
@@ -666,7 +666,7 @@ class ARSCNViewDelegateImpl extends NSObject implements ARSCNViewDelegate {
666
666
this . currentTrackingState = camera . trackingState ;
667
667
668
668
let trackingState = null ,
669
- limitedTrackingStateReason = null ;
669
+ limitedTrackingStateReason = null ;
670
670
671
671
if ( camera . trackingState === ARTrackingState . NotAvailable ) {
672
672
trackingState = "Not available" ;
@@ -810,7 +810,7 @@ class ARSCNViewDelegateImpl extends NSObject implements ARSCNViewDelegate {
810
810
faceGeometry = ARSCNFaceGeometry . faceGeometryWithDeviceFillMesh ( sceneViewRenderer . device , true ) ;
811
811
faceGeometry . firstMaterial . colorBufferWriteMask = SCNColorMask . None ;
812
812
}
813
-
813
+
814
814
this . occlusionNode = SCNNode . nodeWithGeometry ( faceGeometry ) ;
815
815
this . occlusionNode . renderingOrder = - 1 ;
816
816
node . addChildNode ( this . occlusionNode ) ;
0 commit comments