You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by aj...@apache.org on 2004/04/15 00:32:45 UTC
cvs commit: gump/python/gump/svg depdiag.py svg.py
ajack 2004/04/14 15:32:45
Modified: python .cvsignore
python/gump/svg depdiag.py svg.py
Log:
1) Tryign to figure out where the stuff I just commit went.
2) Trying to clean up some dross.
3) More SVG tinkering.
Revision Changes Path
1.9 +2 -1 gump/python/.cvsignore
Index: .cvsignore
===================================================================
RCS file: /home/cvs/gump/python/.cvsignore,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- .cvsignore 2 Apr 2004 16:48:07 -0000 1.8
+++ .cvsignore 14 Apr 2004 22:32:45 -0000 1.9
@@ -1,4 +1,5 @@
*.pyc
+*.svg
*.hap
*.opt
cache
@@ -12,5 +13,5 @@
build
*.log
bogus
-gumpy.log
+gumpy_log.txt
gumpy.lock
1.3 +5 -6 gump/python/gump/svg/depdiag.py
Index: depdiag.py
===================================================================
RCS file: /home/cvs/gump/python/gump/svg/depdiag.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- depdiag.py 14 Apr 2004 22:12:58 -0000 1.2
+++ depdiag.py 14 Apr 2004 22:32:45 -0000 1.3
@@ -191,8 +191,8 @@
depNode=self.matrix.getNodeForProject(dependProject)
(depRow,depCol) = depNode.getRowCol()
- (x,y) = context.realPoint(col,row)
- (x1,y1) = context.realPoint(depCol,depRow)
+ (x,y) = context.realPoint(col,rows-row)
+ (x1,y1) = context.realPoint(depCol,rows-depRow)
print 'VIRTUAL LINE: %s,%s -> %s,%s' % (row,col,depRow,depCol),
print 'LINE: %s,%s -> %s,%s' % (x,y,x1,y1)
@@ -205,8 +205,8 @@
project = node.getProject()
(row,col) = node.getRowCol()
- (x,y) = context.realPoint(col-0.25,row-0.25)
- (x1,y1) = context.realPoint(col+0.25,row+0.25)
+ (x,y) = context.realPoint(col-0.25,(rows-row)-0.25)
+ (x1,y1) = context.realPoint(col+0.25,(rows-row)+0.25)
print 'RECTANGLE %s,%s -> %s,%s' % (x,y,x1,y1)
@@ -218,8 +218,7 @@
project = node.getProject()
(row,col) = node.getRowCol()
-
- (x,y) = context.realPoint(col,row)
+ (x,y) = context.realPoint(col,rows-row)
print 'TEXT %s,%s' % (x,y)
1.3 +5 -5 gump/python/gump/svg/svg.py
Index: svg.py
===================================================================
RCS file: /home/cvs/gump/python/gump/svg/svg.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- svg.py 14 Apr 2004 22:12:58 -0000 1.2
+++ svg.py 14 Apr 2004 22:32:45 -0000 1.3
@@ -159,11 +159,11 @@
if content:
element+='>'
element+=content
- element+='<'
- element+=type
-
- element+='/>'
-
+ element+='</'
+ element+=type
+ element+='>'
+ else:
+ element+='/>'
return element
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org