Skip to content

Commit 28270fa

Browse files
lint issues fixed
1 parent 47d0dcf commit 28270fa

File tree

2 files changed

+30
-30
lines changed

2 files changed

+30
-30
lines changed

demo/app/main-page.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ export function trackingFaceDetected(args: ARTrackingFaceEventData): void {
227227
},
228228
}).then(result => textModel = result);
229229
}
230-
})
230+
});
231231
}
232232
}
233233

src/ar.ios.ts

+29-29
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,10 @@ class AR extends ARBase {
185185

186186
this.sceneView = ARSCNView.new();
187187
this.sceneView.delegate = this.delegate = ARSCNViewDelegateImpl.createWithOwnerResultCallbackAndOptions(
188-
new WeakRef(this),
189-
data => {
190-
},
191-
{});
188+
new WeakRef(this),
189+
data => {
190+
},
191+
{});
192192

193193
// this.sceneView.session.delegate = ARSessionDelegateImpl.createWithOwnerResultCallbackAndOptions(
194194
// new WeakRef(this),
@@ -297,12 +297,12 @@ class AR extends ARBase {
297297

298298
// Perform a hit test using the screen coordinates to see if the user pressed any 3D geometry.
299299
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+
});
306306

307307
if (hitTestResults.count === 0) {
308308
return;
@@ -334,12 +334,12 @@ class AR extends ARBase {
334334
this.lastPositionForPanning = position;
335335

336336
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+
});
343343

344344
if (hitTestResults.count === 0) {
345345
this.targetNodeForPanning = undefined;
@@ -366,7 +366,7 @@ class AR extends ARBase {
366366
let deltaX = (position.x - this.lastPositionForPanning.x) / 700;
367367
let deltaY = (position.y - this.lastPositionForPanning.y) / 700;
368368
// 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});
370370
this.lastPositionForPanning = position;
371371

372372
} else if (state === UIGestureRecognizerState.Ended) {
@@ -385,12 +385,12 @@ class AR extends ARBase {
385385

386386
if (state === UIGestureRecognizerState.Began) {
387387
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+
});
394394

395395
if (hitTestResults.count === 0) {
396396
this.targetNodeForRotating = undefined;
@@ -539,7 +539,7 @@ class SceneTapHandlerImpl extends NSObject {
539539
}
540540

541541
public static ObjCExposedMethods = {
542-
"tap": { returns: interop.types.void, params: [interop.types.id] }
542+
"tap": {returns: interop.types.void, params: [interop.types.id]}
543543
};
544544
}
545545

@@ -557,7 +557,7 @@ class SceneLongPressHandlerImpl extends NSObject {
557557
}
558558

559559
public static ObjCExposedMethods = {
560-
"longpress": { returns: interop.types.void, params: [interop.types.id] }
560+
"longpress": {returns: interop.types.void, params: [interop.types.id]}
561561
};
562562
}
563563

@@ -575,7 +575,7 @@ class ScenePanHandlerImpl extends NSObject {
575575
}
576576

577577
public static ObjCExposedMethods = {
578-
"pan": { returns: interop.types.void, params: [interop.types.id] }
578+
"pan": {returns: interop.types.void, params: [interop.types.id]}
579579
};
580580
}
581581

@@ -593,7 +593,7 @@ class SceneRotationHandlerImpl extends NSObject {
593593
}
594594

595595
public static ObjCExposedMethods = {
596-
"rotate": { returns: interop.types.void, params: [interop.types.id] }
596+
"rotate": {returns: interop.types.void, params: [interop.types.id]}
597597
};
598598
}
599599

@@ -666,7 +666,7 @@ class ARSCNViewDelegateImpl extends NSObject implements ARSCNViewDelegate {
666666
this.currentTrackingState = camera.trackingState;
667667

668668
let trackingState = null,
669-
limitedTrackingStateReason = null;
669+
limitedTrackingStateReason = null;
670670

671671
if (camera.trackingState === ARTrackingState.NotAvailable) {
672672
trackingState = "Not available";
@@ -810,7 +810,7 @@ class ARSCNViewDelegateImpl extends NSObject implements ARSCNViewDelegate {
810810
faceGeometry = ARSCNFaceGeometry.faceGeometryWithDeviceFillMesh(sceneViewRenderer.device, true);
811811
faceGeometry.firstMaterial.colorBufferWriteMask = SCNColorMask.None;
812812
}
813-
813+
814814
this.occlusionNode = SCNNode.nodeWithGeometry(faceGeometry);
815815
this.occlusionNode.renderingOrder = -1;
816816
node.addChildNode(this.occlusionNode);

0 commit comments

Comments
 (0)