import { IDisplayManager } from './displayManager' ; import { NodeMaterialBlock } from 'babylonjs/Materials/Node/nodeMaterialBlock' ; import { ClampBlock } from 'babylonjs/Materials/Node/Blocks/clampBlock' ; export class ClampDisplayManager implements IDisplayManager { public getHeaderClass ( block ) { return "" ; } public shouldDisplayPortLabels ( block ) { return false ; } public getHeaderText ( block ) { return block . name ; } public getBackgroundColor ( block ) { return "#4086BB" ; } public updatePreviewContent ( block , contentArea ) { const clampBlock = block as ClampBlock ; contentArea . classList . add ( "clamp-block" ) ; contentArea . innerHTML = `[${ clampBlock . minimum }, ${ clampBlock . maximum }]` ; } }