List of articles   Colour designations   Choose language


New control "scheme"



Forms with lines

Elements polyline and path have two kind of menu (for point and for section), these menu are specified in attributes point-menu and section-menu (instead of attribute menu). Value of attribute name of elements polyline path is sent in xml-attribute name, new coordinates of node - in x and y, identifier of node or serial number of node (counted from 1) - in id Last moved point (and object in it) or section lay over all others (inside element layer, certainly). Total displacement of point are sent after many motions.

Work with points

click

<dot name=A id=N event=click os= ns= >

Assignment value no to property section-deformation results to drag-and-drop of only one point is maked impossible - two adjacent (neighbouring) sections go together, without changing angle between them.

double

<dot name=A id=N event=double os= ns= >

right-click

Click by right key ("right" click) on a point means occurrence of menu, specified in attribute point-menu, in which user chooses new state (new style) for point. The following is sent

<dot name=A id=N event=menu_item os= ns= >

drag

New coordinates of drag-and-dropped point are sent the following (it's comfortable to find new coordinates by diagnostics).

<dot name=A id=N event=drag x= y= >

drop

If point has got upon other point (of this or other broken line, of this or other picture) - further we shall name it as accepting point, then browser sends additional sament dad

<dot name=A1 id=N1 event=drag x= y= >
<dot name=A2 id=N2 event=drop>
<dad name=A1 id=N1 onname=A2  onid=N2>
where onname and onnum are identifiers of accepting point. One point has got upon another, if an objects, located in them, are crossed. If an
enclosed object covers several other enclosed objects after moving point, then browser chooses object, nearest to mouse cursor, as accepting object.

Work with sections

click

<section name=A id=N event=click os= ns= >

double

<section name=A id=N event=double os= ns= >

right-click

Click by right key ("right" click) on a section means occurrence of menu, specified in attribute section-menu, in which user chooses new state (new style) for section. The following is sent

<section name=A id=N event=menu_item os= ns= >

drag

Section goes during drag-and-drop by parallel carrying. Form sends new coordinates of two points.

<dot name=A id=N   event=drag x= y= >
<dot name=A id=N+1 event=drag x= y= >

Two variants are possible, depending on value of property point-move of tag ld :

dot cross

If two points are combined into one, then second point (on following inside tag line) receives coordinates (null, null) and form sends following XML text

<dot name=A id=N   event=drag x= y= >
<dot name=A id=N+1 event=del>

Nodes and sections of a line change their style (as all other html-objects) under events click, double-click, event from menu), after that point and section of same unit can be written by two different styles, that is completely normal (if object, enclosed into node, has changed style, then node does not change style).




Dmitry Turin



List of articles   Colour designations   Choose language