Code Monkey home page Code Monkey logo

ascii-diag's People

Contributors

danpersa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

andrzejolszak

ascii-diag's Issues

Export/Import Diagram to JSON

  • Come up with a JSON format in which a diagram can be exported
  • Be able to export a diagram to JSON format
  • Be able to import a diagram from JSON format

Export Diagram To Text

  • Create a popup where the text of the diagram will be shown
  • Give the possibility to download the file

ASCII Diagram Parser

  • Create a parser which can take as input a text file representing a diagram and output an array of Shapes

  • Update the UI with e feature to import an ASCII diagram

  • Parse boxes, text, connectors with the default style

  • Parse connectors with arrows

  • Parse connectors with dashed and dotted lines

  • Parse boxes with rounded corners

  • Parse boxes with dashed and dotted lines

Enable TravisCI

  • Create the travis file
  • Enable in travis
  • Add badge to readme

Delete Shapes

Add button to delete the currently selected shape, to make the app more touch friendly

Edit Text Bug

Steps:

  • Create a new text
  • Write a few chars
  • Change to a new tool
  • The text is not saved

Configurable properties for connectors

Whenever we select a connector, a properties section should be shown in the toolbar.
This section should allow to select the start tip of the connector and the end tip of the connector

Move Text

After creating a text and selecting it, a drag and move anchor is shown.
When dragging from the top left side of the anchor, instead of the text getting moved, the text gets deselected

Arrow ending when touching a box

In order to make an arrow touch a box when rendered to SVG, the arrow tip the diagram has to overlap the box.

The correct behavior is that the arrow tip should only touch the box, not overlap it.

Resize The Handlers

Make the Handlers for moving de resizing the shapes a little big bigger, to make them more touch friendly

Avoiding too many function calls in React

Don't use functions in react components, as they are called on every render.

Examples of functions which are called too many times:

isConnectorToolButtonSelected
isSelectToolButtonSelected
isTextToolButtonSelected
isBoxToolButtonSelected
shouldShowBoxOptions
shouldShowConnectorOptions

Instead

Better Properties For Connector

Right now, a connector is described by two points and a direction.
This is not accurate enough. As it is ambiguous and interpretable.
The problem was discovered when trying to parse a diagram.
The connector should be described by three points.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.