import { IDisplayManager } from './displayManager' ; import { NodeMaterialBlock } from 'babylonjs/Materials/Node/nodeMaterialBlock' ; import { TrigonometryBlock , TrigonometryBlockOperations } from 'babylonjs/Materials/Node/Blocks/trigonometryBlock' ; export class TrigonometryDisplayManager implements IDisplayManager { public getHeaderClass ( block ) { return "" ; } public shouldDisplayPortLabels ( block ) { return false ; } public getHeaderText ( block ) { return block . name ; } public getBackgroundColor ( block ) { return "#405C86" ; } public updatePreviewContent ( block , contentArea ) { const trigonometryBlock = block as TrigonometryBlock ; contentArea . classList . add ( "trigonometry-block" ) ; contentArea . innerHTML = TrigonometryBlockOperations [ trigonometryBlock . operation ] ; } }