List of articles   Colour designations   Choose language


Presentation


Concept

Presentation mostly consist of motions of sections (specified by movement of two their ends), and also of changes of colours of nodes and sections and colours of other objects. It's necessary to group not only two motions (two ends of line), but also motion of many lines through different time interval. It's more comfortable to write this finite automaton by listing saments, instead of writing functions by JavaScript (by the way, only not attached points of broken line can execute sament dot, i.e. all intermediate points and, if it is not attached, one of end's points).

<pn>
  <dot name=B num=10 x=50 y=70 ns=style-k>
  <dot name=C num=20 x=80 y=90 ns=style-m>
  <obj name=D ns=style-n>
  <obj name=E ns=style-p>
</pn>
It's necessary to specify name "pn", anticipated by colon, in field "new state" of transition sheet to execute presentation.
css1 F10 :pn

Let's write down all presentations in a separate file, for example, "b.txt", and add following tag inside tag head

<link src="./b.xml" type="presentation">
Saments, specifing in presentation (and sending by server), contain seribute event (instead of ns), that it's possible to change reaction on event in one file of transition sheet, instead in many server's scripts.

Saments
browserserver presentation, browserserver
<dot     name= id= event=  os=  ns= x= y= >

<dot     name= id= event=del>

<dad     name= id= onname= onid= >
<section name= id= event=  os=  ns= >
<_       name=     event=  arg= arg2= >
<obj     name=     event=  os=  ns= >
<pres    name=     event=  os=  exec= >
<dot     name= id= event= x= y= time= >
<dot     name= id= event= x= y= speed= >
<dot     name= id= event=del    time= >
<dot     name= id= event=del    speed= >

<section name= id= ns= >
<_       name=     event= arg=  arg2= >
<obj     name=     ns= >
<pres    name=     exec= >
<sound   src= >
<say     type=     data=  class= >



Additional parameters of movements: time

When it's necessary, that location of point will changed not by jump, but smoothly, during some time, attribute time is used, which defines time of moving. If not time, but speed is need to be set, then atribute speed is used in millimeters per second (mm/sec). Absence of both these parameters is equivalent to time = 0 and speed = ∞ Parameters time and speed are exclusive mutually.

<dot  name= x=  y=  num= time=  >
<dot  name= x=  y=  num= speed= >

Additional movements: sound

It's necessary in some cases, that browser announce a speech comment or play a sound file. There are following sources of a sound:

Details

Simultaneity and consequence of saments

Browser executes saments consistently. It executes saments simultaneously, which are inside sament <<>>. It execute consistently such saments inside simultaneous part of execution, which are inside sament <>. When change of a state, of a location and playing a sound occur simultaneously, then duration of this simultaneous event is equal to greatest of duration.

<pn>
  <<>>
    <dot name=B id=10 x=50 y=70>
    <dot name=C id=20 x=80 y=90>
  <</>>
  <<>>
    <obj name=D ns=style-n>
    <obj name=E ns=style-p>
  <</>>
</pn>
<pn>
  <<>>
    <<>>
      <dot name=B id=10 x=50 y=70>
      <dot name=C id=20 x=80 y=90>
    <</>>
    <obj name=D ns=style-n>
  <</>>
  <obj name=E ns=style-p>
</pn>

Properties of presentation

Presentation has facultative attribute class, which refers to usual css-file, attached to html-document.

<pn class=a> ... </pn>
Following parameters are in style of presentation: dozing (doze), synchronism (sync), cycleness (cycle), listed in a separate file.
pn.a {
  doze:  pause;
  sync:  noserver;
  cycle: 9;
}

Parameter doze specifies, how presentation should react, if it will be started once more by user or server during execution time. Browser don't pay attention at other presentations during that.


Parameter sync specifies, when other presentation should be executed, which is started during executing of this presentation.


Parameter cycle specifies quantity of repetitions of executing. It can be an integer or value loop, specifing to repeat indefinitely. Parameter is equal to one by default (play one time).

Form sends

If object, which call presentation, is inside tag form, then browser informs server about performance of a presentation. Form sends data only after executing of presentation. Browser does not check possibility of performance of all commands in presentation before a beginning of performance.

<pres name=A  event= os= exec=pn>



Dmitry Turin



List of articles   Colour designations   Choose language


Hosted by uCoz