import { ChangeDetectionStrategy , Component , Input } from '@angular/core' ; import { Tensor } from '../beachball/tensor' ; param tensor @ Component ( { changeDetection : ChangeDetectionStrategy . OnPush , selector : 'shared-nodal-planes' , styleUrls : [ './nodal-planes.component.scss' ] , templateUrl : './nodal-planes.component.html' } ) export class NodalPlanesComponent { columnsToDisplay = [ 'plane' , 'strike' , 'dip' , 'rake' ] ; @ Input ( ) tensor : Tensor ; returns { any [ ] } getPlanes ( tensor ) { if ( ! tensor ) { return [ ] ; } return [ tensor . NP1 , tensor . NP2 ] ; } }