Skip to content

Latest commit

 

History

History
48 lines (39 loc) · 3.68 KB

README-CHANGES-TEAM2.md

File metadata and controls

48 lines (39 loc) · 3.68 KB

Changes To Original Code

See PR for detailed changes.

src/Renderer/Common/CommonTypes.fs

  • Added helper to type Edge to get an opposite Edge.
  • Added type to represent Clockwise and Anticlockwise directions.

src/Renderer/DrawBlock/DrawHelpers.fs

  • Added new type of circle to display the corners of components (following pattern for portCircle)

src/Renderer/DrawBlock/DrawModelType.fs

  • Added new messages to indicate resize operation and whether to display corners, added new cursor style

src/Renderer/DrawBlock/Sheet.fs

  • Added function to detect if mouse is over a custom component corner, integrated with mouseOn

src/Renderer/DrawBlock/SheetUpdate.fs

  • Added new messages to show/hide custom component corners when Ctrl held down
  • Processing additional message BeautifySheet which reorders and aligns components on a sheet (see line).

src/Renderer/DrawBlock/SheetUpdateHelpers.fs

  • Modified mouse update functions to run the correct functions during symbol resizing

src/Renderer/DrawBlock/SymbolUpdate.fs

  • Match the new messages added and call the right functions during symbol resizing

src/Renderer/DrawBlock/SymbolView.fs

  • Added code to draw circles on the conrners of custom components
  • New module that contains logic for BeautifySheet.
  • Added useful helpers and types shared between Smart modules.
  • Contains logic for reordering ports on two selected Symbols and flipping Sel of Mux/Demux components.
  • Refactored code to integrate more symmetries.
  • Contains logic for smart routing of wires to snap to net and avoid intersections with symbols.

src/Renderer/DrawBlock/Symbol.fs

src/Renderer/DrawBlock/SymbolHelpers.fs

  • New file, contains helpers used in SymbolView.fs (couldn't go in SmartHelpers.fs)

src/Renderer/DrawBlock/SymbolUpdateResizeHelpers.fs

  • New file, contains manual component resize logic (followed pattern set by SymbolUpdatePortHelpers.fs)

src/Renderer/Renderer.fs

  • Added additional menu items that perform Smart functions (eg. Beautify, Reorder, Optimize Symbol, etc).

src/Renderer/Renderer.fsproj