|
From: <ma...@us...> - 2011-01-16 21:31:19
|
Revision: 260
http://openautomation.svn.sourceforge.net/openautomation/?rev=260&view=rev
Author: mayerch
Date: 2011-01-16 21:31:13 +0000 (Sun, 16 Jan 2011)
Log Message:
-----------
Much bigger handle to start connection (+ little clean up)
Modified Paths:
--------------
PyWireGate/trunk/logic_editor/gle/gle.block.js
PyWireGate/trunk/logic_editor/logicEditor.css
Modified: PyWireGate/trunk/logic_editor/gle/gle.block.js
===================================================================
--- PyWireGate/trunk/logic_editor/gle/gle.block.js 2011-01-16 21:08:47 UTC (rev 259)
+++ PyWireGate/trunk/logic_editor/gle/gle.block.js 2011-01-16 21:31:13 UTC (rev 260)
@@ -128,12 +128,8 @@
if( 'connection' in this )
canvas.line( g, p[0].x, p[0].y, p[1].x, p[1].y, style );
else {
- var parameter = {
- stroke: '#ff0000',//colorByArray( origin.getColor() ),
- 'marker-end' : 'url(#EmptyInPort)'
- };
editorConnectionPointCreate(
- canvas.line( g, p[1].x, p[1].y, p[0].x, p[0].y, parameter )
+ canvas.line( g, p[1].x, p[1].y, p[0].x, p[0].y, {'marker-end': 'url(#EmptyInPort)'} )
, 'inPort', i );
}
if( maskOptions.showLabel )
@@ -149,18 +145,18 @@
p[1].x -= x; p[1].y -= y; // translate back as we are in a transform
if( 'connection' in this )
canvas.line( g, p[0].x, p[0].y, p[1].x, p[1].y, style );
- else
- //editorConnectionPointCreate( canvas.polyline( g, [[width+6, y-4],[width+11, y],[width+6, y+4]], style ), 'outPort', i );
- var parameter = {
- stroke: '#ff0000',//colorByArray( origin.getColor() ),
- 'marker-start' : 'url(#EmptyOutPort)'
- };
+ else {
+ canvas.line( g, p[0].x, p[0].y, p[1].x, p[1].y, {'marker-start': 'url(#EmptyOutPort)'})
editorConnectionPointCreate(
- canvas.line( g, p[0].x, p[0].y, p[1].x, p[1].y, parameter )
- , 'outPort', i );
- if( maskOptions.showLabel )
- canvas.text( g, 2*p[0].x-p[1].x, 2*p[0].y-p[1].y, this.name,
- {'dominant-baseline':'middle','text-anchor':'end'} );
+ canvas.rect( g,
+ p[0].x, p[0].y-2*inset, 2*(inset+outset), 2*(inset+outset),
+ {'class':'hiddenHandle'} ),
+ 'outPort', i
+ );
+ if( maskOptions.showLabel )
+ canvas.text( g, 2*p[0].x-p[1].x, 2*p[0].y-p[1].y, this.name,
+ {'dominant-baseline':'middle','text-anchor':'end'} );
+ }
});
// shotcut
Modified: PyWireGate/trunk/logic_editor/logicEditor.css
===================================================================
--- PyWireGate/trunk/logic_editor/logicEditor.css 2011-01-16 21:08:47 UTC (rev 259)
+++ PyWireGate/trunk/logic_editor/logicEditor.css 2011-01-16 21:31:13 UTC (rev 260)
@@ -64,6 +64,10 @@
cursor: sw-resize;
}
+.hiddenHandle {
+ opacity: 0;
+}
+
.ui-layout-pane { /* all 'panes' */
border: 1px solid #BBB;
overflow: auto;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|