GithubHelp home page GithubHelp logo

jsdot's People

jsdot's Issues

nodes' and edges' styles are defined in style classes

This works combining JS and CSS.

What is not possible is to define new styles at runtime. Even if this feature 
would be available, we would need some way to make those styles persistent. 
E.g. by storing them in the graph representation.

Original issue reported on code.google.com by [email protected] on 19 Jul 2010 at 11:47

stencil factory

Implement a stencil factory which allows code reuse when creating new stencils.

Original issue reported on code.google.com by [email protected] on 24 Aug 2010 at 1:23

  • Blocking: #24

JSON import/export


jsdot.fromJSON(.)
jsdot.toJSON()

also allow it to merge the loaded graph with the existing one.

Original issue reported on code.google.com by [email protected] on 24 Aug 2010 at 1:29

New node shape

Node shape

  _________________
 /                 \
/                   \
\                   /
 \_________________/

Original issue reported on code.google.com by [email protected] on 19 Jul 2010 at 12:08

before* events

Fire before* events before the actual graph events.

When one of these handlers returns false the operation is aborted.

Original issue reported on code.google.com by [email protected] on 25 Aug 2010 at 1:28

Add Demo on the Project Homepage

To showcase the library capabilities, you should add a small demo widget on
the homepage with a link to the full demo on another wiki page

Original issue reported on code.google.com by [email protected] on 17 Dec 2009 at 3:34

Event Handlers

How easy is it to attach event handlers to nodes through the API? This way,
some user-defined code can be written to react to the mouse interactions
with the graph (for example, if you use the library to show the navigation
graph of the site, double clicking on the node takes you to the page
represented by the node)

Original issue reported on code.google.com by [email protected] on 17 Dec 2009 at 3:39

Custom HTML Nodes

What happened to the very nice idea of allowing to put custom HTML content
inside the SVG nodes?

Original issue reported on code.google.com by [email protected] on 17 Dec 2009 at 3:40

allow handlers to be attached to editor and view events

Events are registered with jsdot.addEventHandler and triggered with 
jsdot.fireEvent.

This can easily be exposed on the API.

When the basic editor features are implemented and the view gets updated in 
response to editor and model events this ticket can be closed.

Original issue reported on code.google.com by [email protected] on 19 Jul 2010 at 11:43

toolbar placement

When the container has an absolute position the offsetParent for the toolbar is 
the container itself, whereas when the position is not absolute the 
offsetParent is the body.
This causes a misplacement of the toolbar on startup.

Original issue reported on code.google.com by [email protected] on 25 Aug 2010 at 12:47

Delete tool feedback

Make the delete tool selection-aware:
when something is selected delete it instead of switching to delete-mode.

On the other hand, when nothing is selected, change the mouse cursor such that 
it indicates that what is clicked next will be removed.

Original issue reported on code.google.com by [email protected] on 24 Aug 2010 at 1:22

hexagons alignment

When aligning left or top a selection containing a concave hexagon the 
resulting coordinates are wrong.

getBBox() of a concave hexagon returns the leftmost coordinate of the shape 
(which is negative) instead of the left side of the bounding box.

the same happens with convex hexagons!

Original issue reported on code.google.com by [email protected] on 24 Aug 2010 at 11:58

graph svg bigger than container

The svg may be allowed to be bigger than the container by giving it fixed 
dimensions and setting 'overflow: auto' on the container.
The should also be made to scroll automatically when dragging something.

Still it would be interesting to have zoom and pan abilities implemented using 
svg transformations.


Original issue reported on code.google.com by [email protected] on 25 Aug 2010 at 4:19

counter-intuitive behaviour when dragging selection

When something is selected, dragging on the background moves the selected 
elements. Instead should do nothing (or start box selection).
When dragging a deselected element moves the already selected elements, instead 
it should clear the selection and move the element under the cursor. 

Original issue reported on code.google.com by [email protected] on 11 Aug 2010 at 9:57

the view doesn't depend on the editor and can be used alone as a read-only mode

The view is separated, but it is left open which features shall be part of the 
view.

Dragging will be available in view-only but disabled by default.

Layout will not be in the view-only. But they might be useful: e.g. give a 
graph to the view and tell with which algorithm it should be displayed, the 
resulting view still being static.

Original issue reported on code.google.com by [email protected] on 19 Jul 2010 at 11:53

shapes.svg in html folder

Problem in function
jsdot_load_svg_shapes
defined in shapes.js

When using XMLHttpRequest the file to load (shapes.svg) must be in the same 
folder as the html file. Instead, it should be in ../img/

This is a limitation in a workaround: if, when adding e.g. a marker-end using a 
url(), the browser would load the referenced file, then we wouldn't even need 
this function.

Note that using url(../img/shapes.svg#Arrow) works in FF when viewing a static 
svg (where the marker-end is not added by js but already resent).

Original issue reported on code.google.com by [email protected] on 12 Jul 2010 at 4:37

ghost tools

Reproduce:
1. in menu select node
2. select "help"
4. quit by clicking the X in the upper right corner of the poopup
3. click on the drawing area

A node is drawn, even thought the node tool is not selected.

Either nothing should be drawn or the node tool should still be selected.

The same happens with edges and other "no-state" tools.

Original issue reported on code.google.com by [email protected] on 17 Dec 2009 at 5:29

New node shape

node shape

 ___________________
 \                 /
  \               /
  /               \
 /_________________\


Original issue reported on code.google.com by [email protected] on 19 Jul 2010 at 12:10

uniqueness

Use the id of the div to which it is attached to identify an instance of JSDot.
That shall also be used as prefix for each other id generated by the instance.

Original issue reported on code.google.com by [email protected] on 2 Jul 2010 at 8:11

box selection

When dragging on the background draw a box and select the elements which lay 
inside this box.

This can be implemented as a listener, like JSDot.Drag is done.

Original issue reported on code.google.com by [email protected] on 26 Aug 2010 at 4:06

Release

Don't forget to make a public (possibly single .js file) release :-)

Original issue reported on code.google.com by [email protected] on 17 Dec 2009 at 3:37

Rectangles & Circles

It would be great to be able to choose (and possibly switch) the shape of
the graph nodes to rectangles as in the early days of the project

Original issue reported on code.google.com by [email protected] on 17 Dec 2009 at 3:35

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.