Example #1
0
 def test_exponential_notation_bug(self):
     converter = TikZPathExporter(inkscape_mode=False)
     transform = "matrix(1,-0.43924987,0,1,-2.3578e-6,37.193992)"
     trans1 = parse_transform(transform)
     self.assertFalse('e-06' in converter._convert_transform_to_tikz(trans1)[0])
     trans2 = parse_transform("translate(1e-6,0.03057816)")
     self.assertFalse('e-06' in converter._convert_transform_to_tikz(trans2)[0])
Example #2
0
    def test_markers(self):
        tt = TikZPathExporter()
        tt.parse(arrows_svg)
        n = tt.get_node_from_id('pathA')
        gs = GraphicsState(n)

        self.assertTrue("Triangle" in gs.marker_end)
        self.assertTrue(gs.marker_start is None)
        self.assertTrue(gs.marker_mid is None)
        gs2 = GraphicsState(tt.get_node_from_id('pathB'))
        self.assertTrue("Triangle" in gs2.marker_end)
        self.assertTrue("Triangle" in gs2.marker_start)