This release lets you read data from an external file.
Changes:
- commands open (file) and file.readable added. Subcommands: (file) read, readln, hasnext.
- command atan2 added
- command expr enhanced: atan2
- command pen enhanced: more colours
This is a maintenance release.
Changes:
- new command today
- fix svg output: always use UTF-8 encoding for header info.
This is a maintenance release.
Changes:
- svg output: default resolution changed (from 90dpi) to 96dpi
- fix command point: diameter set to 1.4 x linewidth, as specified in the manual. The change also affects command dimangle for right angles.
This release introduces blocks.
The feature eases inserting part drawings from a library. A block can be rotated without influencing the main coordinate system.
Changes:
- new commands for inserts: block, endblock, block.rotate, block.flip, block.scale
- new command geom.azimuth
- new command opacity. Output modes screen and png only.
- command text: style name block
removed (use justify
instead)
This release adds a command for importing images. Scanned drawings can easily be imported to the right scale.
Changes:
- new command image
- command unitlength enhanced: introduce natural unit. E.g. unitlength [expr 1/50] m
- operator ~= (almost equal) modified: increased tolerance
This release adds a preview window. The drawing is displayed directly to the screen. The viewer window can stay open while editing the input file in an editor. Pressing F5 will actualise the drawing.
Changes:
- new output type screen: drawj2d -Tscreen drawing.hcl
opens a preview window.
- command pen enhanced: new colour darkorange
This release lets you write text paragraphs on the drawing. Words are wrapped automatically.
Changes:
- command text added. Styles: left
or justify
- command font enhanced: styles plain
, bold
and italic
- commands label and texlabel enhanced: direction BL
(baseline).
Drawj2d has been uploaded to a software repository on the opensuse build server.
Go to http://software.opensuse.org/package/drawj2d?search_term=drawj2d. There are repos for various rpm based Linux distributions like openSUSE, Redhat, Fedora, ScientificLinux.
From the site you can download the installation file (rpm). Or you can add http://download.opensuse.org/repositories/home:/qwert2003/openSUSE_Leap_42.1/ (choose your distro) to your favorite repos, that way you'll get update notifications.
This release improves the math expression evaluator.
Changes:
- command expr enhanced: max and min functions take variable number of arguments. E.g. [expr max(0, 2.0, 4.0, 2.3)]
- command expr enhanced: scientific notation. E.g. "1.2e-5
"
- command assert enhanced: approximately equal comparison. E.g. assert "$a ~= $b"
- command expr enhanced: precision increased to 16 digits
- command expr enhanced: new function exp(n) for e^n
- command expr enhanced: expression validation improved
This release adds commands for drawing ellipses and other shapes.
Changes:
- new commands ellipse and fillellipse
- new commands segment and fillsegment
- new commands sector and fillsector
- new command fillbox
- documentation: section about shapes in function reference
This release brings general unicode support. Thus greek letters are permitted in variable names.
Changes:
- permit unicode chars in variable names (core hecl)
- print line number when parsing error occurs (core hecl)
- math expression evaluator updated
- provide drawj2d syntax highlighting for editor jedit
This release improves Mavscript interoperability, supporting unicode characters (greek letters, etc) in labels.
Changes:
- new commands min, max
- command geom.vector enhanced
- commands label and texlabel enhanced:
escaped unicode chars (e.g. "escu00b7" for the unicode char U+00B7)
as internally used by mavscript-yacas
- svg metadata: creator set to Drawj2d
This release adds a convenient method to draw rectangles and adds more examples to the function reference.
Changes:
- new commands rod, fillrod
- new commands movepolar, linepolar
- new command geom.polar
- commands label and texlabel enhanced: new parameter C (center)
- command point: abbreviation pt, p depreciated
- pdf metadata: creator set to Drawj2d
- documentation: more examples
This release adds some convenience methods for shorter code.
Changes:
- new command linemid
- new commands movetox, movetoy
- new commands linetox, linetoy
- new commands geom.tox, geom.toy
The Drawj2d program documentation & function reference has been updated (December 23, 2014).
This release adds support for custom colours and adds more examples to the function reference.
Changes:
- command pen enhanced to accept any colour by rgb hex values. Brown colour defined.
- new command stat.tip
- command geom.distance enhanced
- command fillrect enhanced
- commands geom.angle/anglerad enhanced
- command dot modified: larger that point.
- new command shortcuts geom.v, geom.abs, geom.dist, stat.dist
- commands force/force2 modified: not drawing if the abs force value is zero.
- commands label/texlabel enhanced.
- fix command texdimlinerel: typesetting issue
- documentation: more examples
This release adds statics commands and TeX typesetting enhancements.
Forces are defined by their application point and force vector: "x y Fx Fy". The stat.* commands are related to forces, but they are not drawing commands. Use the commands force and force2 to draw forces.
Changes related to forces:
- new commands FX, FY, XY, FXY. Returning force components, application point or vector.
- new command fu/kN returning the force length in drawing units.
- new commands stat.add/+++, stat.subtract/---, stat.multiply/***. These commands respect equilibrium.
- new commands stat.abs, stat.distance, stat.moment
- new commands stat.move and stat.move2
- new command stat.actionline
- new command stat.mequi for moment equilibrium
- new command stat.fequi for force component equilibrium
- new command stat.equi for (general) equilibrium
- drawing commands force and force2 enhanced... read more
** This release adds drawing commands for quadratic and cubic parabolas.**
Changes:
- new command quadcurve for parabola
- new command cubiccurve for cubic parabola
- new commands dimangle and texdimangle for angle labels
- new command geom.parallel for parallel line
This release adds geometry commands.
Changes:
- new commands ++ (geom.add) and -- (geom.subtract) for vector addition/subtraction
- new commands ** (geom.multiply) and // (geom.divide) for vector scaling
- new commands geom.online, geom.rotate
- mavscript-yacas compatibility improved (escaped unicode chars)
This release implements support for TeX formatted labels and adds geometry commands.
Changes:
- new command texlabel. Based on JLaTeXMath, no latex installation required.
- new commands polygon and fillpolygon
- command line enhanced to accept more than two points
- new geometry commands: geom.intersect, geom.intersectlinepath, geom.area, geom.centroid, geom.vector, geom.crossproduct, geom.dotproduct, geom.anglerad, geom.angle, geom.length, geom.norm
- input encoding UTF-8 independent of platform
- fallback mode vectorgraphics2d removed
This is the initial public release.
Drawj2d currently supports lines, points, circles, arcs, arrows, dimension lines and labels. Font, color, line width and line type (solid, dotted, dashdotted) can be set. Parables and splines are not supported.
Supported output formats are:
- vector formats: pdf, svg, eps, emf
- intermediate format: tikz
- raster image: png, bmp