diff --git a/app/components/ConnectionPoint.js b/app/components/ConnectionPoint.js new file mode 100644 index 0000000..116a32e --- /dev/null +++ b/app/components/ConnectionPoint.js @@ -0,0 +1,34 @@ +// @flow +import React, { Component } from 'react'; +var ReactDOM = require('react-dom'); +var electron = require('electron'); + +const {Raphael,Paper,Set,Circle,Ellipse,Image,Rect,Text,Path,Line} = require('react-raphael'); + +export default class ConnectionPoint extends Component { + // Props include id, x, and y. + constructor(props) { + super(props); + + this.state = { + hide: false, + }; + }; + + render() { + // Use an offset of half the width from the (x,y) center points + let size = 8; + let tlx = this.props.x - (size / 2); + let tly = this.props.y - (size / 2); + + console.log("Rendering CP (id: %s) at %d, %d\n", this.props.id, this.props.x, this.props.y); + return ( + ); + }; +}