Visular is a javascript diagramming toolkit based on AngularJS
I started writing Visular about two years ago, as a declarative and extensible angular toolkit for diagramming. I left its development too early, and never published it in this uncompleted state until I watched this video and decided to put it here as it is! it is actually my first thoughts and implementations left out for any developer who might be interested :) take a look at the demo
The idea is to enable developer to add common diagramming functionality as much declaratively as
possible. For example if you want to enable panning, you just add
vz-pan
directive into your vz-diagram
, or you can enable zomming on wheel event by
vz-zoom-on-wheel
. Another common feature for diagramming environments is to have guide lines
(aka magnets) which helps user position elements aligned with each other. This can be added
to a vz-diagram
component simply by adding a vz-guideline
directive.
<vz-diagram vz-pan vz-zoom-on-wheel vz-guideline></vz-diagram>
While these kind of directives are meant to be shipped with Visular out of the box (in a modular structure),
the design of the library must be in a way in which these utilities and directives are implemented completely on top of
api exposed by core components of Visular such as vz-diagram
. This way, any other special case (such as domain
specific position guidelines and magnets) can be implemented with the same api.
vz-guideline
for example uses two basic api of the vz-diagram
, addOverlay()
and addElementPositionInterceptor()
to add guidelines and intercept position of elements while they are dragging around.
TODO
TODO