cyberz.org

December 8, 2009

SVGPan: a Javascript SVG (Viewer) Pan/Zoom/Drag library

Filed under: News — andrea @ 7:37 pm

Some time ago the need for a browser-compatible vectorial language pushed me to consider the SVG markup language (I won’t say anything about Internet Explorer – it’s just unsupported there). The language itself is great, but, as a beginner, I was so disappointed about the fact that on the Internet I couldn’t find ANY library ready to use for panning and zooming features that I had to write one from scratch.

The SVGPan library features:

  1. Panning (pan à la Google maps) (click on the white background and pan)
  2. Zooming (using the mouse wheel)
  3. Element dragging (click on a drawing element and drag it somewhere else)
  4. Combinations of the above like zooming while dragging

The resulting javascript library is published here, in the hope that someone can find it useful. The library itself is very small and easy to use; and it’s licensed under the BSD license. You can try a demo here

View code
Title: SVGPan demo
Description: Hello

(more…)

December 7, 2009

Bode and Nyquist diagrams using GNU Octave

Filed under: News — andrea @ 6:51 pm

Using GNU Octave is easy to plot Bode and Nyquist diagrams, as follows:

bode(zp([], [-1*i, i, -1], 1))

nyquist(zp([-0.5], [0.0, -0.2, -4], 1))

Powered by WordPress