summaryrefslogtreecommitdiff
path: root/tikzit/src/common/util.m
AgeCommit message (Collapse)Author
2017-01-11made new subdirAleks Kissinger
2013-08-27Make sure we never output numbers in scientific notationAlex Merry
Converting NSNumber to a string raises the possibility of outputing a number like 2.2e-8, as it essentially uses the %g format specifier. This then cannot be parsed. Since there is no built-in specifier for outputing floats with variable precision (ie: removing any trailing zeros), I cooked up a function to do just that. Currently set the maximum precision at 4dp (our normal grid layout only makes use of 2dp).
2013-03-23Bring back parser/lexer error reportingAlex Merry
Even better than before!
2013-02-12Make sure edge bounds include decorationsAlex Merry
Fixes rendering of newly-drawn edges in GTK+ version.
2012-05-24Fix RegularPolyShape rotation to match TikZAlex Merry
In PGF/TikZ, regular polygons with rotation 0 have a side flat at the bottom. RegularPolyShape now does the same, and also takes its rotation in degrees.
2012-01-17Be a bit more forgiving about whether a point is on a line segmentrandomguy3
git-svn-id: https://tikzit.svn.sourceforge.net/svnroot/tikzit/trunk@389 7c02a99a-9b00-45e3-bf44-6f3dd7fddb64
2012-01-17Calculate the head and tail of edges to be just where they contact the node ↵randomguy3
(ie: behave more like tikz). git-svn-id: https://tikzit.svn.sourceforge.net/svnroot/tikzit/trunk@388 7c02a99a-9b00-45e3-bf44-6f3dd7fddb64
2012-01-16Some cleanup before calculating proper head and tail endpoints for Edgerandomguy3
git-svn-id: https://tikzit.svn.sourceforge.net/svnroot/tikzit/trunk@379 7c02a99a-9b00-45e3-bf44-6f3dd7fddb64
2012-01-09Move tikzit into "trunk" directoryrandomguy3
git-svn-id: https://tikzit.svn.sourceforge.net/svnroot/tikzit/trunk@365 7c02a99a-9b00-45e3-bf44-6f3dd7fddb64