Class: renderEditor

renderEditor($scope)

render editor controller

Implementation for a feature editor.
Controller for the editor tab of the plugin for this specific feature.
It is the controller of the AngularJS component for the editor

Constructor

new renderEditor($scope)

constructor - description
Parameters:
Name Type Description
$scope type A reference to the plugin's scope for editing panel's variables
Source:
Requires:
  • module:D3.js

Requires

  • module:D3.js

Methods

(static) exports.renderEditor(scope)

renderEditor - function exported to be used as the AngularJs component
Parameters:
Name Type Description
scope type A reference to the scope of the plugin to route functions and variables
Source:
Returns:
AngularJS Component New renderEditor

(static) RenderEditorController#actualizarColores()

actualizarColores - handler for an editor tab event
Changes the instance of color scale to be used by D3.
For discrete representation (fixed number of colors) an ad-hoc function is done.
For continous representation (range of colors) a D3.js scale function is used, based on
domain and color selected.
Source:

(static) RenderEditorController#actualizarMapa()

actualizarMapa - handler for an editor tab event
Loads the svg resource on the DOM, after flushing the older one.
It is follwed by a render event call.
Source:

(static) RenderEditorController#invertirColores()

invertirColores - handler for an editor tab event
Reverts the order of the colors applied on the scale.
Source: