A Canvas
is an area where the graphics representation of Francy live.
Please see Francy-JS for client implementation.
In this section we show all Francy Canvas Categories.
‣ IsCanvas ( arg ) | ( filter ) |
Returns: true
or false
Identifies Canvas
objects.
‣ IsCanvasDefaults ( arg ) | ( filter ) |
Returns: true
or false
Identifies CanvasDefaults
objects.
In this section we show all Francy Canvas Families.
In this section we show all Francy Canvas Representations.
‣ IsCanvasRep ( arg ) | ( filter ) |
Returns: true
or false
Checks whether an Object
has a Canvas
internal representation.
‣ IsCanvasDefaultsRep ( arg ) | ( filter ) |
Returns: true
or false
Checks whether an Object
has a CanvasDefaults
internal representation.
In this section we show all Francy Canvas Operations.
‣ Canvas ( IsString(title)[, IsCanvasDefaults] ) | ( operation ) |
Returns: Canvas
A Canvas
represents the base element where rendering happens. This object is inspired by the HTML canvas tag element, which is used to draw graphics in runtime via JavaScript. Examples:
Create a simple Canvas
:
gap> canvas := Canvas(""); gap> Id(canvas); gap> SetTitle(canvas, "Quaternion Group Subgroup Lattice"); gap> Title(canvas); gap> SetHeight(canvas, 400); # default 600 gap> Height(canvas); gap> SetWidth(canvas, 400); # default 800 gap> Width(canvas); gap> SetZoomToFit(canvas, false); # default true gap> ZoomToFit(canvas); gap> Draw(canvas);
‣ Add ( IsCanvas[, IsFrancyGraph, List(IsFrancyGraph)] ) | ( operation ) |
Returns: Canvas
Adds a FrancyGraph
to a specific Canvas
. Well, the api is abstract enough to allow Adding a list of IsFrancyGraph
to a canvas, but this results in setting the graph property only to the last IsFrancyGraph
in the list.
‣ Remove ( IsCanvas[, IsFrancyGraph, List(IsFrancyGraph)] ) | ( operation ) |
Returns: Canvas
Removes a FrancyGraph
from a Canvas
.
‣ Add ( IsCanvas[, IsChart, List(IsChart)] ) | ( operation ) |
Returns: Canvas
Adds a Chart
to a specific Canvas
. Well, the api is abstract enough to allow Adding a list of IsChart
to a canvas, but this results in setting the graph property only to the last IsChart
in the list.
‣ Remove ( IsCanvas[, IsChart, List(IsChart)] ) | ( operation ) |
Returns: Canvas
Removes a Chart
from a Canvas
.
‣ Add ( IsCanvas[, IsMenu, List(IsMenu)] ) | ( operation ) |
Returns: Canvas
Adds a Menu
to a specific Canvas
.
‣ Remove ( IsCanvas[, IsMenu, List(IsMenu)] ) | ( operation ) |
Returns: Canvas
Removes a Menu
from a Canvas
.
‣ Add ( IsCanvas[, IsFrancyMessage, List(IsFrancyMessage)] ) | ( operation ) |
Returns: IsCanvas
Adds a FrancyMessage
to a specific IsCanvas
.
‣ Remove ( IsCanvas[, IsFrancyMessage, List(IsFrancyMessage)] ) | ( operation ) |
Returns: IsCanvas
Removes a FrancyMessage
from a specific IsCanvas
.
‣ Add ( IsCanvas[, IsFrancyRenderer, List(IsFrancyRenderer)] ) | ( operation ) |
Returns: IsCanvas
Adds a FrancyRenderer
to a specific IsCanvas
.
‣ Remove ( IsCanvas[, IsFrancyRenderer, List(IsFrancyRenderer)] ) | ( operation ) |
Returns: IsCanvas
Removes a FrancyRenderer
from a specific IsCanvas
.
‣ Draw ( IsCanvas ) | ( operation ) |
Returns: rec
with the JSON metadata model representation of the Canvas
Generates the JSON metadata model representation of the Canvas
object and all children objects.
‣ DrawSplash ( IsCanvas ) | ( operation ) |
Returns: IsString
with HTML generated
Generates an HTML page with an offline version od Francy JS and opens it within the default browser of the system.
In this section we show all Global Francy Canvas Records for multi purpose.
In this section we show the Francy Attributes.
‣ Width ( arg ) | ( attribute ) |
Returns: IsPosInt
The Width of the Canvas
in pixels IsPosInt
.
‣ Width ( arg1 ) | ( operation ) |
‣ SetWidth ( IsCanvas, IsPosInt ) | ( operation ) |
Sets the Width of the Canvas
in pixels IsPosInt
.
‣ Height ( arg ) | ( attribute ) |
Returns: IsPosInt
The Height of the Canvas
in pixels IsPosInt
.
‣ Height ( arg1 ) | ( operation ) |
‣ SetHeight ( IsCanvas, IsPosInt ) | ( operation ) |
Sets the Height of the Canvas
in pixels IsPosInt
.
‣ ZoomToFit ( arg ) | ( attribute ) |
Returns: IsBool
True if enabled otherwise False
ZoomToFit
is a property that sets the objects within the Canvas
to fit within the GUI visible area, after rendering in the client implementation.
‣ ZoomToFit ( arg1 ) | ( operation ) |
‣ SetZoomToFit ( IsCanvas, IsBool ) | ( operation ) |
ZoomToFit
is a property that sets the objects within the Canvas
to fit within the GUI visible area.
‣ Title ( arg ) | ( attribute ) |
Returns: IsString
with the title of the object
The Canvas
title to show on the GUI.
‣ Title ( arg1 ) | ( operation ) |
‣ SetTitle ( IsCanvas, IsString ) | ( operation ) |
Sets the title of the Canvas
.
‣ TexTypesetting ( arg ) | ( attribute ) |
Returns: IsBool
with the title of the object
Enables usage of TeX Typesetting on the client implementation, if supported.
‣ TexTypesetting ( arg1 ) | ( operation ) |
‣ SetTexTypesetting ( IsCanvas, IsBool ) | ( operation ) |
Sets TeX Typesetting on the canvas objects.
generated by GAPDoc2HTML