<p>Francy is responsible for generating JSON metadata models allowing external tools / libraries / frameworks to add visual representations to math structures. This JSON model representation defines the contract between this package (server) and a GUI framework (client), enabling complete SoC (Separation of Concerns). Francy can be used to provide graphical interactive environments on existing GAP packages.</p>
<p>A JSON schema is available and can be used to produce compliant clients for this package. <em>See schema/francy.json</em></p>
<p>To map required and optional attributes from the schema into GAP code, the implementation follows the following criteria:</p>
<ul>
<li><p>Object creation requests mandatory attributes, i.e. required with no default value, e.g. canvas:=Canvas("Title")</p>
</li>
<li><p>Object creation accepts an object of defaults, i.e. default values for mandatory fields but that might repeat throughout the creation of multiple similar objects, e.g. defaults:=DefaultCanvas; defaults!.zoomToFit:=false; canvas:=Canvas("Title",defaults); Where DefaultCanvas contains defaults for width (800) and height (600)</p>
</li>
<li><p>Attributes associated with the object that can be set, .i.e. optional with no defaults, e.g. canvas:=Canvas("Title"); SetTexTypesetting(canvas,true);</p>
</li>
</ul>
<p>The API follows common GAP naming conventions and adding objects is done using Add(objectHolder,object) and removing object is done using Remove(objectHolder,object).</p>
<p>Although Francy has the concept of a <code class="code">Graph</code>, it does not implement any Mathematics Graphs Theory.</p>
<p>Please see Francy-JS for client implementation.</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ FrancyId</code>( <var class="Arg">arg1</var> )</td><td class="tdright">( operation )</td></tr></table></div>
<p>Returns: a <code class="code">IsString</code> with the unique id of the object</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ SetFrancyId</code>( <var class="Arg">o</var>, <var class="Arg">s</var> )</td><td class="tdright">( operation )</td></tr></table></div>
<p>Use with care! Changing the unique ID might be useful in certain cases, but bear in mind it might cause unexpected behavior. Use at your own risk.</p>
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.