PERGOLA LOGO

System Constants

pergola.version

String representing the current version.

pergola.browser

pergola.browser.trident

Boolean; true if browser is IE 9+.

pergola.browser.firefox

Boolean; true if browser is Firefox.

pergola.browser.opera

Boolean; true if browser is Opera.

pergola.browser.webkit

Boolean; true if browser is Webkit based.

pergola.browser.chrome

Boolean; true if browser is Chrome.

pergola.browser.safari

Boolean; true if browser is Safari.

pergola.locale

String representing the browser's language.

pergola.debug

Boolean or Number; set the variable debug in the config file to true, false or number of lines (defaults to 16). Configuration.

pergola.decimals

Number; default number of decimal places (as specified in the configuration file). Default value in the trim() function if parameter is omitted. Use also when saving documents in vector editing application.

pergola.getDir

String; the name of the server script for getting directory listings. “getDir.php” is the default value used by the pergola.getFiles() function. If you need to use another server script, you can override this value in the arguments passed to the function, and you must do so each time you invoke the function. The file getDir.php is located in the lib/PHP folder. A copy of it must exist in the root folder of your application.

Disclaimer: if you wish your value to be the default you must hack Pergola (pergola.js file), but in doing so you assume total responsibility of any malfunctioning of the framework/library, or of any of its components, deriving from this service or from its misuse. Any such action, which shall be considered a third party experiment, voids Pergola's guarantee and support (within the context and the time frame of the experiment), and any present or future proprietors of Pergola are not to be considered liable in any manner whatsoever.

pergola.NF

Boolean; true if Intl.NumberFormat is implemented.

pergola.DTF

Boolean; true if Intl.DateTimeFormat is implemented.

pergola.mutationEvnt

Boolean; true if "MutationEvents" "2.0" feature or window.MutationEvent.

pergola.mutationObserver

Boolean; true if window.MutationObserver or window.WebKitMutationObserver or window.MozMutationObserver. Currently not used in Pergola.

pergola.ns

pergola.ns.svg

String; "http://www.w3.org/2000/svg".

pergola.ns.xlink

String; "http://www.w3.org/1999/xlink".

pergola.ns.xhtml

String; "http://www.w3.org/1999/xhtml".

pergola.ns.xml

String; "http://www.w3.org/XML/1998/namespace".

pergola.ns.xmlns

String; "http://www.w3.org/2000/xmlns/".

pergola.path

String; path to the pergola folder. Configuration.

pergola.radixChar

Object; its locale language properties specify the language's decimal delimiter. Use for passing the "decimal" parameter to the unformatNumber() String prototype method when converting locale strings to numbers, for example:

pergola.remote

Boolean; true if pergola is running in remote mode.

pergola.systemMenu

Boolean; determines whether pergola has a system menu on the taskbar. Configuration.

Boolean; set it to true if you place a logo on the taskbar. Configuration.

pergola.theme

String; the current theme color, as defined in the config file. Configuration.

pergola.undos

Number; number of undos, as defined in config file. Configuration. When instantiating the pergola.Undo class you can override this number of undos.

pergola.writeFile

String; the name of the server script for writing files. “writeFile.php” is the default value used by the pergola.saveJSON() and pergola.saveSVG() functions. If you need to use another server script, you can override this value in the arguments passed to the function, and you must do so each time you invoke the function. The writeFile.php file is located in the “PHP” folder of the package. If your application uses pergola.getFiles() and/or pergola.saveJSON() and pergola.saveSVG(), a copy of writeFile.php must exist in the root folder of the application.

Disclaimer: if you wish your value to be the default you must hack Pergola (pergola.js file), but in doing so you assume total responsibility of any malfunctioning of the framework/library, or of any of its components, deriving from this service or from its misuse. Any such action, which shall be considered a third party experiment, voids Pergola's guarantee and support (within the context and the time frame of the experiment), and any present or future proprietors of Pergola are not to be considered liable in any manner whatsoever.