import React from 'react'; import pick from 'lodash/pick'; import { applyTransform } from '../../utils/transform-utils'; import { RESOURCES_LAYER_TITLE_WIDTH, RESOURCES_LAYER_HEIGHT, } from '../../constants/styles'; export default class NodeResourcesLayerTopology extends React.Component { render() { // This component always has a fixed horizontal position and width, // so we only apply the vertical zooming transformation to match the // vertical position and height of the resource boxes. const verticalTransform = pick(this.props.transform, ['translateY', 'scaleY']); const { width, height, y } = applyTransform(verticalTransform, { width: RESOURCES_LAYER_TITLE_WIDTH, height: RESOURCES_LAYER_HEIGHT, y: this.props.verticalPosition, }); return (
{this.props.topologyId}
); } }