import * as React from 'react'; import { DiamondNodeModel } from './DiamondNodeModel'; import { DiagramEngine, PortModelAlignment, PortWidget } from '@projectstorm/react-diagrams'; import styled from '@emotion/styled'; export interface DiamondNodeWidgetProps { node: DiamondNodeModel; engine: DiagramEngine; size?: number; } namespace S { export const Port = styled.div` width: 16px; height: 16px; z-index: 10; background: rgba(0, 0, 0, 0.5); border-radius: 8px; cursor: pointer; &:hover { background: rgba(0, 0, 0, 1); } `; } /** * @author Dylan Vorster */ export class DiamondNodeWidget extends React.Component { render() { return (
` }} />
); } }