Use the "Add" button to create new phasors, then enter an expression (i.e. "3 + 5*i") into the input box. The result will be interpreted as a complex number, which is then rendered. You can change the label used for the legend by doubleclicking on the corresponding field. Via the "Edit" button you can change attributes like color and width of the currently selected phasor. Please note that by holding the ctrl-key (or long tap) you can select more then one phasor.
You can drag and drop phasors in the graphic itself and move or scale the legend. More rendering options can be found via the settings dialog ("Settings"-button).
The "File" button let's you export the current graphic as .svg or .png file. You can also save the current setup as a .json file and load it again later.
To the left of the "label"-field of every phasor the symbol-name is shown. Newly created phasors don't have a name yet. Doubleclick on the field to change that. Symbols must be unique and are only allowed to contain letters, digits and underscore ("_"). Other phasors can now use the symbol-name in their expressions (i.e. "-phasor_1 * 3 + i"). Please make sure not to create dependency loops.
Via the field left of the expression-input of every phasor you can select another phasor as "parent". Just doubleclick and enter the symbol-name of said parent. Of course loops are not allowed.
PhaszorViz 1.0 by jeanpaulrichter
github.com/jeanpaulrichter/phasorviz
uses jquery, jquery-mousewheel, jquery-ui, jquery-ui-touch-punch, bootstrap, bootswatch 'superhero'-theme, bootstrap-colorpicker, popper.js, FileSaver.js and math.js
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.