Class: AppSchematicsController

AppSchematicsDirective~ AppSchematicsController


new AppSchematicsController($scope, $element)

The controller governing the directive's state and it's interaction with
the outside world.

Parameters:
Name Type Description
$scope

a reference to the angularjs scope of the component

$element

a reference to the element the component is assigned to

Source:

Methods


<static> factory($scope, $element)

Factory to create the controller; used as the .controller member of the
directive

Parameters:
Name Type Description
$scope

a reference to the angularjs scope of the component

$element

a reference to the element the component is assigned to

Source:

getHighlightedSerId()

Retrieve the currently highlighted series - used by sub-controllers in
directives transcluded into this directive. These directives are not
necessarily aware of the highlights object supplied to the
app-schematics directive.

Source:

getSerieses()

Returns the array of available serieses - used by sub-controllers in
directives transcluded into this directive. These directives are not
necessarily aware of the highlights object supplied to the
app-schematics directive.

Source:

getSrcUrl()

Return the source URL of the SVG graph to be displayed. This is
concatenated by the attribute "dir" and "svg" supplied to the directive.

Source:

loaded()

Invoked if a SVG is loaded; trims the SVG from its whitespace and
populates it with the current series values.

Source:

seriesesValuesChangedHandler(values)

Returns callback that is invoked every time a other series values
are detected in the highlights object and will broadcast this as an
event to child scopes so that other directives can catch the event from
there without having knowledge about the highlights object.

Parameters:
Name Type Description
values

an array of series values

Source:

setHighlightedSerId()

Set the currently highlighted series - used by sub-controllers in
directives transcluded into this directive. These directives are not
necessarily aware of the highlights object supplied to the
app-schematics directive.

Source: