PedagoComponent
Summary
This component tests the browser capabilities and redirects the user to the suitable page.
Constructor
PedagoComponent
Syntax
PedagoComponent
(
-
core
Summary
Parameters:
-
coreCoreThe main engine.
Item Index
Methods
Methods
checkBrowserCapability
Syntax
Summary
Tests the browser WebGL capabilities and redirects the user to the suitable page.
Returns:
Boolean:
True if the browser supports Wanaplan, false if it does not.
destroy
Syntax
destroy
()
Summary
Method called when the component is destroyeddisable
Syntax
disable
()
Summary
Disables the componentenable
Syntax
enable
()
Summary
Enables the componentgetPageURL
Syntax
Summary
Gets the url of a pedago page.
Parameters:
-
pageStringThe page.
Returns:
String:
Returns the complete url of the page.
getTargeted
Syntax
Summary
Finds out if the given position is over an element handled by the componentParameters:
-
vectorVectorA position, usually the cursor's one.
Returns:
Object:
The targeted element, or null if nothing is found.
initialize
Syntax
initialize
()
Summary
Method called when Wanaplan is initialized. You don't need to call this method manually.onContextChanged
Syntax
onContextChanged
(
-
context
Summary
Method called when the context is switched (2D -> 3D or 3D -> 2D)Parameters:
-
contextStringThe new context
redirectToPage
Syntax
redirectToPage
(
private
-
page
Summary
Redirects the browser to a page.
Parameters:
-
pageStringThe page.