MapperCollection
- Kind
- class
- Source
- src/pipeline/Mapper.js:1207
Description
Collection of named mappers for either node or edge visuals.
Signature
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
mode | 'node'|'edge' | Visual target scope. | ||
network | HeliosNetwork | Source graph. | ||
onChange | Function | optional | Callback invoked when mapper configuration changes. | |
debug | Value passed to constructor. |
Returns
Collection with a default mapper.
TypeMapperCollectionNotes
Collections let apps keep multiple named mapper presets and combine them before applying visual attributes.
Mappers
Mapper configuration for node and edge visual channels. MappersBehavior handles mapper UI state.
createMapper(name)
Source: src/pipeline/Mapper.js:1265
Configures or reads create mapper.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
name | string | Attribute or API identifier. |
toCombinedMapper(options = {}) → {Object|this}
Source: src/pipeline/Mapper.js:1288
Merges all registered mappers into a single Mapper (channels override in insertion order).
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options | Object | optional | {} | Options object for this operation. |
Returns
Current to combined mapper value when called without arguments; otherwise this instance for chaining.
TypeObject|thisExample
helios.toCombinedMapper({
enabled: true,
});
Configuration
General configuration setters and compatibility helpers.
setDefault(mapper) → {this}
Source: src/pipeline/Mapper.js:1257
Replaces the default mapper.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
mapper | Mapper |
Returns
This instance.
TypethisUtilities
Additional public helpers that do not belong to a narrower API area.
channel(name)
Source: src/pipeline/Mapper.js:1222
Returns a ChannelBuilder bound to the default mapper. Calling .done() will mark the collection dirty.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
name | string | Attribute or API identifier. |
add(entry, name) → {this}
Source: src/pipeline/Mapper.js:1239
Adds a Mapper instance or a descriptor object describing channels.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
entry | Mapper | Object | |||
name | string | optional |
Returns
This instance.
TypethisbuildFromDescriptor(descriptor)
Source: src/pipeline/Mapper.js:1271
Configures or reads build from descriptor.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
descriptor | Value passed to buildFromDescriptor. |
touch()
Source: src/pipeline/Mapper.js:1313
Configures or reads touch.